How to enforce tags while creating any kind of resource in AWS?

0

I want create a IAM policy/Tagging policy / SCP that should allow me to enforce user to create/add tags that are mandatory(mentioned in the policy), when they create resource(EC2,S3,VPC etc) on AWS.

3개 답변
1
AWS
답변함 2년 전
  • when I am assigning SCP to Organization unit I am getting this error."You can apply SCPs to only member accounts in an organization. They have no effect on users or roles in the management account"

0

This can be achieved in 3 ways :

  1. two features: tag-based access control's RequestTag IAM condition key and Tag Policies. https://docs.aws.amazon.com/IAM/latest/UserGuide/access_tags.html#access_tags_control-requests The RequestTag condition forces services which support that IAM condition key to supply tags during resource creation (or tag mutation requests) and their Organization's Tag Policy stipulates what tags must be present on supported resources at creation time or during tag mutations. Here's a sample RequestTags policy: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_scps_examples.html#example-require-tag-on-create

  2. By Using Preventive guardrails using AWS Control Tower which prevents resource creation if tags are not allocated. Details : https://getstarted.awsworkshop.io/05-extend/03-guardrails.html https://docs.aws.amazon.com/controltower/latest/userguide/guardrails.html

  3. using AWS Service Catalog to provision resources with launch constraints : https://docs.aws.amazon.com/servicecatalog/latest/adminguide/constraints-launch.html https://docs.aws.amazon.com/servicecatalog/latest/adminguide/getstarted-launchconstraint.html

AWS
답변함 2년 전
0

A more flexible solution that enables you to trigger automation if the resource is noncompliant is described here: https://aws.amazon.com/blogs/mt/implementing-automated-and-centralized-tagging-controls-with-aws-config-and-aws-organizations/

AWS
답변함 2달 전

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

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

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

관련 콘텐츠