Skip to content

Commit

Permalink
adding c7n support and fixing undetected failures in codebuild runs
Browse files Browse the repository at this point in the history
  • Loading branch information
eamonnfaherty committed Mar 9, 2023
1 parent f61ea8d commit 39e89f2
Show file tree
Hide file tree
Showing 146 changed files with 1,070 additions and 148 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

[tool.poetry]
name = "aws-service-catalog-puppet"
version = "0.226.2"
version = "0.227.0"
description = "Making it easier to deploy ServiceCatalog products"
classifiers = ["Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "Programming Language :: Python :: 3", "License :: OSI Approved :: Apache Software License", "Operating System :: OS Independent", "Natural Language :: English"]
homepage = "https://service-catalog-tools-workshop.com/"
Expand Down
2 changes: 1 addition & 1 deletion servicecatalog_puppet/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# Copyright 2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
# Copyright 2023 Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0
2 changes: 1 addition & 1 deletion servicecatalog_puppet/asset_helpers.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
# Copyright 2023 Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0

import os
Expand Down
2 changes: 1 addition & 1 deletion servicecatalog_puppet/asset_helpers_unit_test.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
# Copyright 2023 Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0
import os
from unittest import mock as mocker
Expand Down
2 changes: 1 addition & 1 deletion servicecatalog_puppet/aws.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
# Copyright 2023 Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0

import logging
Expand Down
2 changes: 1 addition & 1 deletion servicecatalog_puppet/cli.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
# Copyright 2023 Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0

import json
Expand Down
2 changes: 1 addition & 1 deletion servicecatalog_puppet/commands/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# Copyright 2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
# Copyright 2023 Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0
2 changes: 1 addition & 1 deletion servicecatalog_puppet/commands/bootstrap.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
# Copyright 2023 Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0

import io
Expand Down
2 changes: 1 addition & 1 deletion servicecatalog_puppet/commands/graph.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
# Copyright 2023 Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0
from servicecatalog_puppet import serialisation_utils

Expand Down
2 changes: 1 addition & 1 deletion servicecatalog_puppet/commands/management.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
# Copyright 2023 Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0
import glob
import os
Expand Down
2 changes: 1 addition & 1 deletion servicecatalog_puppet/commands/manifest.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
# Copyright 2023 Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0
import json
import logging
Expand Down
2 changes: 1 addition & 1 deletion servicecatalog_puppet/commands/misc.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
# Copyright 2023 Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0

import json
Expand Down
2 changes: 1 addition & 1 deletion servicecatalog_puppet/commands/orgs.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
# Copyright 2023 Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0

import logging
Expand Down
2 changes: 1 addition & 1 deletion servicecatalog_puppet/commands/show_codebuilds.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
# Copyright 2023 Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0
import json
import logging
Expand Down
2 changes: 1 addition & 1 deletion servicecatalog_puppet/commands/show_pipelines.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
# Copyright 2023 Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0
import datetime
import json
Expand Down
2 changes: 1 addition & 1 deletion servicecatalog_puppet/commands/spoke_management.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
# Copyright 2023 Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0

import logging
Expand Down
2 changes: 1 addition & 1 deletion servicecatalog_puppet/commands/task_reference.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
# Copyright 2023 Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0
import logging
import os
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
# Copyright 2023 Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0
import copy

Expand Down Expand Up @@ -27,6 +27,7 @@ def generate(puppet_account_id, manifest, output_file_path):
organizations_to_share_with = dict()
ous_to_share_with = dict()
accounts_to_share_with = dict()

for a in manifest.get("accounts", []):
if a.get("organization"):
organizations_to_share_with[a.get("organization")] = True
Expand Down Expand Up @@ -86,7 +87,6 @@ def generate(puppet_account_id, manifest, output_file_path):
task_to_add["item_name"] = item_name
# set up for later pass
task_to_add["dependencies_by_reference"] = [constants.CREATE_POLICIES]

task_reference = graph.escape(
f"{task_to_add.get('ou_name', task_to_add.get('account_id'))}-{task_to_add.get('region')}"
)
Expand Down Expand Up @@ -190,6 +190,7 @@ def generate(puppet_account_id, manifest, output_file_path):
section_name,
task_reference,
task_to_add,
manifest,
)

#
Expand Down

0 comments on commit 39e89f2

Please sign in to comment.