Skip to content

Latest commit

 

History

History
31 lines (24 loc) · 1.18 KB

File metadata and controls

31 lines (24 loc) · 1.18 KB

Community::CodeCommit::ApprovalRuleTemplate

Installation using AWS CLI

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

aws cloudformation wait stack-create-complete \
  --stack-name community-codecommit-approvalruletemplate-resource-role

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

# register the cloudformation type
aws cloudformation register-type \
  --type-name Community::CodeCommit::ApprovalRuleTemplate \
  --type RESOURCE \
  --schema-handler-package s3://community-resource-provider-catalog/community-codecommit-approvalruletemplate-0.1.0.zip

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

aws cloudformation set-type-default-version \
  --version-id <version-id> \
  --type-name Community::CodeCommit::ApprovalRuleTemplate \
  --type RESOURCE