Skip to content
This repository has been archived by the owner on Jul 17, 2020. It is now read-only.

ElasticIP association can fail #2

Open
jamescook opened this issue Oct 22, 2019 · 0 comments
Open

ElasticIP association can fail #2

jamescook opened this issue Oct 22, 2019 · 0 comments

Comments

@jamescook
Copy link

I received this error launching OpenVidu Pro using the default CF template from the marketplace:

You must specify an allocation id when mapping an address to a VPC instance 
(Service: AmazonEC2; Status Code: 400; 
Error Code: InvalidParameterCombination; 
Request ID: de9904e6-850f-477a-b675-6832ae509738)

When configured with a VPC, the following resource config fails with the above error in Cloudformation:

  MyEIP:
    Type: AWS::EC2::EIPAssociation
    Condition: NoSelfSigned
    Properties:
      InstanceId: !Ref OpenViduServer
      EIP: !Ref PublicElasticIP

According to the CF docs, EIP is only used for EC2-Classic. For VPC, AllocationID must be specified. [1]

[1] https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-eip-association.html

I worked around the issue by customizing the template to use AllocationID instead of the EIP property.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant