1 Answer
- Newest
- Most votes
- Most comments
1
Hi,
If you are using the default VPC, you can try to explicitly mention the VPCId
of the default VPC in the Security Group configuration.
Something like this:
ActiveMQSecurityGroup:
Type: AWS::EC2::SecurityGroup
Properties:
GroupDescription: Security Group for Amazon MQ that allows traffic for all supported protocols and GUI access.
VpcId: "vpc-012345678abc12de3f"
SecurityGroupIngress:
- IpProtocol: tcp
FromPort: 61616
ToPort: 61616
CidrIp: 0.0.0.0/0
Description: OpenWire
I tried making this change and it did not give any error, successfully deploying the cloudformation stack and MQ Broker.
Outputs
I hope this resolves the issue.
Thanks,
Atul
answered 6 months ago
Relevant content
- asked a year ago
- asked 10 days ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 10 months ago
- AWS OFFICIALUpdated 3 months ago
Huh, it works! But I have to admit the error was very vague... And the docs says
Required: Conditional
on the VpcId forAWS::EC2::SecurityGroup
. Anyways - thank you!Glad that it helped!