Skip to content

CustomResource attribute error

0

Hello, Im getting the following when trying to create a CF stack from a template:

CustomResource attribute error: Vendor response doesn't contain BastionSecurityGroup key in object arn:aws:cloudformation:us-east-1:edited:stack/ta-linux/edited|BastionInfo|edited in S3 bucket cloudformation-custom-resource-storage-useast1

My code for that looks like this:

  BastionIngressRule:
    Type: AWS::EC2::SecurityGroupIngress
    Properties:
      GroupId: !GetAtt EDITEDGroup.GroupId
      IpProtocol: tcp
      FromPort: 22224
      ToPort: 22224
      SourceSecurityGroupId: !GetAtt BastionInfo.BastionSecurityGroup

Any ideas?

asked 4 years ago1.9K views
1 Answer
1

It would appear that the resource called BastionInfo is a custom resource? The error message is explaining that this custom resource does not have a property called BastionSecurityGroup and therefore the !GetAtt function is failing.

I suggest checking your custom resource to verify that you have the correct property name.

AWS
answered 4 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Relevant content