Automate Enterprise Support Enrollment on AWS Control Tower Linked Accounts
One of the best practices of managing multiple accounts in the AWS environments is to leverage use of?AWS Control Tower.
As part of operational activity all AWS accounts needs to be enrolled with the right?support level.?By the use of AWS Control Tower account creation with required security and governance controls becomes easy,?and provides options to further customize using?lifecycle events.
This project utilizes one such event?"CreateManagedAccount"?to automate support case creation while requesting the newly created account to be enrolled in Enterprise Support tier.
This project contains source code and supporting files for a serverless application that you can deploy with the SAM CLI.?It includes the following files and folders:
Prerequisites
AWS Serverless Application Model is a great way to package and quickly deploy serverless applications such of these which are completely event driven,?to learn more about SAM refer to?AWS documentation.
The SAM CLI is an extension of the AWS CLI that adds functionality for building and testing Lambda applications.?It uses Docker to run your functions in an Amazon Linux environment that matches Lambda.
领英推荐
Clone the repo
git clone https://github.com/vsr2158/SAM_enable_enterprisesupport_controltower_linked.gitDeploy
To build and deploy your application for the first time,?run the following in your shell:
cd SAM_enable_enterprisesupport_controltower_linked/
sam build
sam deploy --guided
The first command will build the source of your application.?The second command will package and deploy your application to AWS,?with a series of prompts:
Cleanup
Finally to delete the application that you created,?use the AWS CLI.?Assuming you used your project name for the stack name,?you can run the following:
aws cloudformation delete-stack --stack-name function_enable_enterprisesupport_controltower_linked
Resources
See the?AWS SAM developer guide?for an introduction to SAM specification,?the SAM CLI,?and serverless application concepts.
Software Engineering | Platform Engineering | 4 x AWS Certified | DevOps | CI/CD | Operational Excellence | Technology Transformation | Enterprise Observability | Product Development & Ownership | People Development
1 年Nice!!!
Presales (Enterprise Architecture & Hybrid Cloud )
2 年Good one .Thanks for sharing.