SCP to restrict create resource

0

Dear Team - I have gone through https://aws.amazon.com/blogs/mt/implement-aws-resource-tagging-strategy-using-aws-tag-policies-and-service-control-policies-scps/ . As per this we can create the SCP tag policy to prevent creating new resources if no pre-defined tags are there.

In above link, example given is for EC2:runinstance. Which means, existing EC2 resources with non-compliance tags will not be impacted, right ?

If yes, i am looking for similar functionality for all the AWS resources. For example, if i create new RDS/EC2/S3 without tags "costcenter=0890", it should not let user to create those resources. At the same time, it should also not impact any existing resources without the same tag name and value.

To achieve this, do i need to add separate action for individual resource type like ec2:runinstance to stop creating that resources ? Do we have any documents for the same. i have 16 linked account under organization.

1回答
1
承認された回答

Could you simply add additional resource types to sample tag policy from your link? Tag policy enforcement doesn't work with all the resources but I think the list covers the most important ones.

https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_supported-resources-enforcement.html

profile picture
エキスパート
Kallu
回答済み 3ヶ月前
profile picture
エキスパート
レビュー済み 2ヶ月前
  • Thanks, my concern is SCP should not disturb existing resources. From the link you provided, if i add "backup:backup-vault" in SCP with tag enforce, existing backup vault will continue to work as it is even with non-compliant tag, right ?

  • Most likely adding backup-vault won't disturb existing vault operations. Typically these would be something that include tag inheritance as part of the service, like autoscaling or EMR. See https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_tag-policies-enforcement.html

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ