Configure stack to use allocated Elastic IP eipalloc-06bea32c3a787c2b1

This commit is contained in:
vickytechkey 2026-08-06 11:38:04 +05:30
parent 6ce2b46d87
commit 75b77a8188

View file

@ -153,7 +153,7 @@ export class AwsCdkStack extends cdk.Stack {
// 5. Associate your pre-created Elastic IP using its Allocation ID
new ec2.CfnEIPAssociation(this, 'MailServerEIPAssociation', {
allocationId: 'YOUR_ALLOCATION_ID_HERE', // <--- Replace with your Elastic IP Allocation ID (e.g., eipalloc-xxxx)
allocationId: 'eipalloc-06bea32c3a787c2b1',
instanceId: instance.instanceId,
});