How resources are provisioned (through CloudFormation or Manually or Coding) ?

0

Any method/code/tool can help to find out

[1] What are the resources are provisioned with AWS CloudFormation templates (IaC/Automated way)

[2] What are the resources are created/provisioned manually through AWS Management Console (UI) ? And

[3] Any changes made to those resources after successfully provisioned (either through UI or services) ?

1개 답변
0

Resources created via CloudFormation are not automatically tagged with anything to show that they've been created via CFN. A Best Practice is to ensure that if you are creating those resources via some kind of IaC, that you had specific tags to the resources themselves, for just this reason. I generally recommend adding a tag that shows which version of code this resource was instantiated by, for troubleshooting purposes later. This goes for all IaC resources - not just ones created by CloudFormation.

Since there aren't tags added by CFN (automatically), there's no immediate difference between a resource created by CloudFormation and one created by hand, whether that's AWS CLI, programatically, or through the console. Again - it's always a good idea to add tags to those resources - at least to ensure you can capture who created the resoruce, why, who's paying for it, and perhaps other Operational needs (like if it needs to be backed up, or has a specific lifetime associated).

As far as resources changing after provisioning, you can use CFN drift detection, or you can enable Config. Drift Detection will tell yo uspecifically which resources have changed from the time you originally instantiated them (with CloudFormation), vs. Config - which will tell you specifically what changes have happened, who made those changes and what the previous configuration was, in case you need to roll-back. Make sure to enable Config Recorder BEFORE you initially instantiate anything, so it can record those changes as you make them.

AWS
Paul_B
답변함 2년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠