├── .github └── PULL_REQUEST_TEMPLATE.md ├── .gitignore ├── CODE_OF_CONDUCT.md ├── CONTRIBUTING.md ├── LICENSE ├── README.md ├── code ├── __init__.py ├── configuration │ ├── resource_types_actions_allowed.json │ └── resource_types_supported.json ├── helpers │ ├── __init__.py │ ├── controllers │ │ ├── __init__.py │ │ ├── policies.py │ │ ├── policy.py │ │ ├── role.py │ │ ├── roles.py │ │ └── table.py │ ├── custom_resource_handler.py │ ├── defaults.py │ ├── exceptions.py │ ├── logger.py │ ├── partition.py │ ├── resources │ │ ├── __init__.py │ │ ├── base.py │ │ ├── ec2_instance.py │ │ ├── factory.py │ │ ├── lambda_function.py │ │ └── s3_bucket.py │ ├── resources_generator.py │ ├── stack.py │ └── utils │ │ ├── __init__.py │ │ ├── catch_error.py │ │ ├── convertor.py │ │ ├── rand.py │ │ └── session.py ├── partition_phase_a.py └── partition_phase_b.py ├── demo ├── demo.md ├── demo.sh ├── launch_productsA.yml ├── launch_productsB.yml ├── portfolios.yml └── products │ ├── ec2 │ └── template.yml │ ├── ec2_with_profile │ └── template.yml │ ├── lambda │ └── template.yml │ └── s3 │ └── template.yml ├── deployment ├── __init__.py └── template.yml └── docs ├── custom_resource.md ├── images ├── architecture.png ├── concept.png ├── flow.png ├── policy_and_role_as_boundary.png └── usecase-example.png └── support_new_resource_type.md /.github/PULL_REQUEST_TEMPLATE.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/aws-service-catalog-portfolio-partition/HEAD/.github/PULL_REQUEST_TEMPLATE.md -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | *.pyc 2 | .DS_Store 3 | venv*/ 4 | *.zip 5 | .idea/ -------------------------------------------------------------------------------- /CODE_OF_CONDUCT.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/aws-service-catalog-portfolio-partition/HEAD/CODE_OF_CONDUCT.md -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/aws-service-catalog-portfolio-partition/HEAD/CONTRIBUTING.md -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/aws-service-catalog-portfolio-partition/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/aws-service-catalog-portfolio-partition/HEAD/README.md -------------------------------------------------------------------------------- /code/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /code/configuration/resource_types_actions_allowed.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/aws-service-catalog-portfolio-partition/HEAD/code/configuration/resource_types_actions_allowed.json -------------------------------------------------------------------------------- /code/configuration/resource_types_supported.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/aws-service-catalog-portfolio-partition/HEAD/code/configuration/resource_types_supported.json -------------------------------------------------------------------------------- /code/helpers/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /code/helpers/controllers/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /code/helpers/controllers/policies.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/aws-service-catalog-portfolio-partition/HEAD/code/helpers/controllers/policies.py -------------------------------------------------------------------------------- /code/helpers/controllers/policy.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/aws-service-catalog-portfolio-partition/HEAD/code/helpers/controllers/policy.py -------------------------------------------------------------------------------- /code/helpers/controllers/role.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/aws-service-catalog-portfolio-partition/HEAD/code/helpers/controllers/role.py -------------------------------------------------------------------------------- /code/helpers/controllers/roles.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/aws-service-catalog-portfolio-partition/HEAD/code/helpers/controllers/roles.py -------------------------------------------------------------------------------- /code/helpers/controllers/table.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/aws-service-catalog-portfolio-partition/HEAD/code/helpers/controllers/table.py -------------------------------------------------------------------------------- /code/helpers/custom_resource_handler.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/aws-service-catalog-portfolio-partition/HEAD/code/helpers/custom_resource_handler.py -------------------------------------------------------------------------------- /code/helpers/defaults.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/aws-service-catalog-portfolio-partition/HEAD/code/helpers/defaults.py -------------------------------------------------------------------------------- /code/helpers/exceptions.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/aws-service-catalog-portfolio-partition/HEAD/code/helpers/exceptions.py -------------------------------------------------------------------------------- /code/helpers/logger.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/aws-service-catalog-portfolio-partition/HEAD/code/helpers/logger.py -------------------------------------------------------------------------------- /code/helpers/partition.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/aws-service-catalog-portfolio-partition/HEAD/code/helpers/partition.py -------------------------------------------------------------------------------- /code/helpers/resources/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /code/helpers/resources/base.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/aws-service-catalog-portfolio-partition/HEAD/code/helpers/resources/base.py -------------------------------------------------------------------------------- /code/helpers/resources/ec2_instance.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/aws-service-catalog-portfolio-partition/HEAD/code/helpers/resources/ec2_instance.py -------------------------------------------------------------------------------- /code/helpers/resources/factory.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/aws-service-catalog-portfolio-partition/HEAD/code/helpers/resources/factory.py -------------------------------------------------------------------------------- /code/helpers/resources/lambda_function.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/aws-service-catalog-portfolio-partition/HEAD/code/helpers/resources/lambda_function.py -------------------------------------------------------------------------------- /code/helpers/resources/s3_bucket.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/aws-service-catalog-portfolio-partition/HEAD/code/helpers/resources/s3_bucket.py -------------------------------------------------------------------------------- /code/helpers/resources_generator.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/aws-service-catalog-portfolio-partition/HEAD/code/helpers/resources_generator.py -------------------------------------------------------------------------------- /code/helpers/stack.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/aws-service-catalog-portfolio-partition/HEAD/code/helpers/stack.py -------------------------------------------------------------------------------- /code/helpers/utils/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /code/helpers/utils/catch_error.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/aws-service-catalog-portfolio-partition/HEAD/code/helpers/utils/catch_error.py -------------------------------------------------------------------------------- /code/helpers/utils/convertor.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/aws-service-catalog-portfolio-partition/HEAD/code/helpers/utils/convertor.py -------------------------------------------------------------------------------- /code/helpers/utils/rand.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/aws-service-catalog-portfolio-partition/HEAD/code/helpers/utils/rand.py -------------------------------------------------------------------------------- /code/helpers/utils/session.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/aws-service-catalog-portfolio-partition/HEAD/code/helpers/utils/session.py -------------------------------------------------------------------------------- /code/partition_phase_a.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/aws-service-catalog-portfolio-partition/HEAD/code/partition_phase_a.py -------------------------------------------------------------------------------- /code/partition_phase_b.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/aws-service-catalog-portfolio-partition/HEAD/code/partition_phase_b.py -------------------------------------------------------------------------------- /demo/demo.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/aws-service-catalog-portfolio-partition/HEAD/demo/demo.md -------------------------------------------------------------------------------- /demo/demo.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/aws-service-catalog-portfolio-partition/HEAD/demo/demo.sh -------------------------------------------------------------------------------- /demo/launch_productsA.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/aws-service-catalog-portfolio-partition/HEAD/demo/launch_productsA.yml -------------------------------------------------------------------------------- /demo/launch_productsB.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/aws-service-catalog-portfolio-partition/HEAD/demo/launch_productsB.yml -------------------------------------------------------------------------------- /demo/portfolios.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/aws-service-catalog-portfolio-partition/HEAD/demo/portfolios.yml -------------------------------------------------------------------------------- /demo/products/ec2/template.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/aws-service-catalog-portfolio-partition/HEAD/demo/products/ec2/template.yml -------------------------------------------------------------------------------- /demo/products/ec2_with_profile/template.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/aws-service-catalog-portfolio-partition/HEAD/demo/products/ec2_with_profile/template.yml -------------------------------------------------------------------------------- /demo/products/lambda/template.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/aws-service-catalog-portfolio-partition/HEAD/demo/products/lambda/template.yml -------------------------------------------------------------------------------- /demo/products/s3/template.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/aws-service-catalog-portfolio-partition/HEAD/demo/products/s3/template.yml -------------------------------------------------------------------------------- /deployment/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /deployment/template.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/aws-service-catalog-portfolio-partition/HEAD/deployment/template.yml -------------------------------------------------------------------------------- /docs/custom_resource.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/aws-service-catalog-portfolio-partition/HEAD/docs/custom_resource.md -------------------------------------------------------------------------------- /docs/images/architecture.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/aws-service-catalog-portfolio-partition/HEAD/docs/images/architecture.png -------------------------------------------------------------------------------- /docs/images/concept.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/aws-service-catalog-portfolio-partition/HEAD/docs/images/concept.png -------------------------------------------------------------------------------- /docs/images/flow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/aws-service-catalog-portfolio-partition/HEAD/docs/images/flow.png -------------------------------------------------------------------------------- /docs/images/policy_and_role_as_boundary.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/aws-service-catalog-portfolio-partition/HEAD/docs/images/policy_and_role_as_boundary.png -------------------------------------------------------------------------------- /docs/images/usecase-example.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/aws-service-catalog-portfolio-partition/HEAD/docs/images/usecase-example.png -------------------------------------------------------------------------------- /docs/support_new_resource_type.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/aws-service-catalog-portfolio-partition/HEAD/docs/support_new_resource_type.md --------------------------------------------------------------------------------