You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have an EC2 instance which I'm deploying to the PUBLIC subnet. I understand by doing this the Instance should be automatically provisioned with Public IP address.
Instance is configured to have primary and secondary ENI.
Primary to have Public and Private IP
Secondary to have only Private IP
When I deploy my instance for the first time it is deployed without any issues and Public IP is assigned to the instance.
But then for example when I make changes to the startup script of the instance and re-deploy again, EC2 Instance is not getting Public IP assigned. (only Private IP for both ENIs)
When I deploy the instance without the secondary ENI the redeployment works fine but with the secondary ENI deployment present it doesn't work and the Public IP is not assigned.
Does someone has similar experience?
Stack is deployed with: cdkVersion: '2.20.0'
Expected Behavior
Public IP should be assigned to instance after CDK redeployment
Current Behavior
Public IP should is only assigned during first deployment
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello I have a following problem.
I have an EC2 instance which I'm deploying to the PUBLIC subnet. I understand by doing this the Instance should be automatically provisioned with Public IP address.
Instance is configured to have primary and secondary ENI.
When I deploy my instance for the first time it is deployed without any issues and Public IP is assigned to the instance.
But then for example when I make changes to the startup script of the instance and re-deploy again, EC2 Instance is not getting Public IP assigned. (only Private IP for both ENIs)
When I deploy the instance without the secondary ENI the redeployment works fine but with the secondary ENI deployment present it doesn't work and the Public IP is not assigned.
Does someone has similar experience?
Stack is deployed with: cdkVersion: '2.20.0'
Expected Behavior
Public IP should be assigned to instance after CDK redeployment
Current Behavior
Public IP should is only assigned during first deployment
CODE snippet:
Beta Was this translation helpful? Give feedback.
All reactions