Skip to content

Latest commit

 

History

History
46 lines (38 loc) · 1.7 KB

File metadata and controls

46 lines (38 loc) · 1.7 KB

Community::Organizations::EbsEncryptionDefaults

Installation using AWS CLI

# first install the execution role
aws cloudformation create-stack \
  --template-url https://community-resource-provider-catalog.s3.amazonaws.com/community-ec2-ebsencryptiondefaults-resource-role-0.1.0.yml \
  --stack-name community-ec2-ebsencryptiondefaults-resource-role \
  --capabilities CAPABILITY_IAM

aws cloudformation wait stack-create-complete \
  --stack-name community-ec2-ebsencryptiondefaults-resource-role

# get the value of the ExecutionRoleArn Output
aws cloudformation describe-stacks \
  --stack-name community-ec2-ebsencryptiondefaults-resource-role

# register the cloudformation type
aws cloudformation register-type \
  --type-name Community::Organizations::EbsEncryptionDefaults \
  --type RESOURCE \
  --schema-handler-package s3://community-resource-provider-catalog/community-ec2-ebsencryptiondefaults-0.1.0.zip \
  --execution-role <role-arn-from-output>

aws cloudformation describe-type-registration --registration-token <registration-token> 

aws cloudformation set-type-default-version \
  --version-id <version-id> \
  --type-name Community::Organizations::EbsEncryptionDefaults \
  --type RESOURCE

Installation using org-formation task

For more information on AWS Organization Formation, see: https://github.com/org-formation/org-formation-cli

CommunityEc2EbsEncryptionDefaultsRP:
  Type: register-type
  SchemaHandlerPackage: s3://community-resource-provider-catalog/community-ec2-ebsencryptiondefaults-0.1.0.zip
  ResourceType: 'Community::Organizations::EbsEncryptionDefaults'
  MaxConcurrentTasks: 10
  OrganizationBinding:
    IncludeMasterAccount: true
    Account: '*'
    Region: us-east-1