Parameters:
InstanceType:
Type: 'AWS::SSM::Parameter::Value<String>'
Default: /EC2/InstanceType
Parameters:
cleanupbucket_arn:
Type: 'AWS::SSM::Parameter::Value<String>'
Default: /CloudFormation/Lambda/cleanupbucket_arn
Resources:
myBucketResource:
Type: AWS::S3::Bucket
LambdaUsedToCleanUp:
Type: Custom::cleanupbucket
Properties:
ServiceToken: !Ref cleanupbucket_arn # Lambda 함수의 arn
BucketName: !Ref myBucketResource