- Newest
- Most votes
- Most comments
Hlo Team,
1.Contact AWS Support: Reach out to AWS Support to report this behavior. They can investigate further and provide insights into whether this behavior is intended or if it's a bug that needs to be addressed. Review Elastic Beanstalk Configuration: Double-check your Elastic Beanstalk environment configuration to ensure that you've explicitly chosen not to assign a public IP address to instances. If you've configured the environment correctly and still encounter this issue, it might indicate a bug in Elastic Beanstalk.
2.Workaround: Manual Disassociation: As you mentioned, manually disassociating the EIPs after deployment is a workaround, but it's not ideal due to the unpredictable behavior you've observed. However, if this workaround is feasible for your use case, you may continue using it until a better solution is available.
3.Consider Other Deployment Options: If Elastic Beanstalk's behavior doesn't align with your requirements and there's no immediate resolution, you might explore alternative deployment options such as AWS ECS, AWS Fargate, or managing your EC2 instances directly. These services provide more fine-grained control over networking configurations and may better suit your needs.
4.Stay Informed: Keep an eye on AWS release notes, forums, and announcements for any updates regarding this issue or related changes to Elastic Beanstalk's behavior. AWS frequently introduces enhancements and fixes based on customer feedback.
5.Community Feedback: Engage with the AWS community through forums, discussion groups, or social media platforms to share your experience and gather insights from other users who may have encountered similar issues or devised workarounds.
Hi
Here is the similar question answered: https://repost.aws/it/questions/QU6ZAgqzufSnS8KUXp2_XdmQ/how-to-remove-elastic-ips-from-elastic-beanstalk-environments?sc_ichannel=ha&sc_ilang=en&sc_isite=repost&sc_iplace=hp&sc_icontent=QU6ZAgqzufSnS8KUXp2_XdmQ&sc_ipos=15
I assume there is **possibility **with IAC terraform or CFT, If you dont mind to try with that ? I am not 100% sure
- in CFT You can define https://github.com/vanderbilt-redcap/redcap-aws-cloudformation/blob/6b15d6594c5d78bb52f682e5c4384d706af7aad0/02-rc-elasticbeanstalk.yaml#L382C2-L383C25 as false within the CloudFormation template for your EC2 instances, preventing automatic EIP assignment
AssociatePublicIpAddress : false
Here is the Example Teamplate: https://github.com/vanderbilt-redcap/redcap-aws-cloudformation/blob/master/02-rc-elasticbeanstalk.yaml
Terraform: https://automateinfra.com/2021/03/24/how-to-launch-aws-elastic-beanstalk-using-terraform/
Relevant content
- asked 7 months ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 9 months ago