Patrick Gold
01/10/2022, 9:52 PMthdxr
01/10/2022, 10:10 PMthdxr
01/10/2022, 10:10 PMPatrick Gold
01/10/2022, 10:12 PMPatrick Gold
01/10/2022, 10:12 PMPatrick Gold
01/10/2022, 10:12 PMthdxr
01/10/2022, 10:12 PMthdxr
01/10/2022, 10:13 PMPatrick Gold
01/10/2022, 10:13 PMconst bastionHostLinux = new ec2.BastionHostLinux(this, 'BastionHostLinux', {
vpc: vpc,
securityGroup: bastionSecurityGroup,
subnetSelection: {
subnetType: ec2.SubnetType.PUBLIC,
},
});Patrick Gold
01/10/2022, 10:14 PMPatrick Gold
01/10/2022, 10:14 PMthis.addOutputs({
BastionHostinstance: bastionHostLinux.instancePublicDnsName,
...
})Patrick Gold
01/10/2022, 10:15 PMPatrick Gold
01/10/2022, 10:20 PMPatrick Gold
01/10/2022, 10:21 PMFrank
Patrick Gold
01/25/2022, 10:08 PMFrank
.build/cdk.out and see if the EC2 instance is still in the template. If it is not, the issue is likely within SST/CDK.
• Then, go to CloudFormation console and find the stack, open up the Resources tab and see if the instance is still in there, and what state it is in. If it’s in CREATE_COMPLETE or UPDATE_COMPLETE it means CFN didn’t remove it.
• Then, go to CloudTrail and look through recent logs and you should see the IAM user/role that turned off the instance.Patrick Gold
01/25/2022, 10:20 PMPatrick Gold
01/25/2022, 10:21 PMFrank
Patrick Gold
02/02/2022, 6:27 PMUPDATE_IN_PROGRESS | AWS::EC2::Instance | BastionHostLinuxD318DEDE | Requested update requires the creation of a new physical resource; hence creating one.
UPDATE_IN_PROGRESS | AWS::EC2::Instance | BastionHostLinuxD318DEDE | Resource creation Initiated
UPDATE_COMPLETE | AWS::EC2::Instance | BastionHostLinuxD318DEDE
DELETE_IN_PROGRESS | AWS::EC2::Instance | BastionHostLinuxD318DEDEPatrick Gold
02/02/2022, 6:27 PMPatrick Gold
02/02/2022, 6:30 PMFrank
AWS::EC2::Instance that required to replace the resource.Frank
sst diff prior to sst deploy until we track down the issue?Frank
sst diff that will show us what has changed since last deploy.Frank
Patrick Gold
02/23/2022, 11:38 PMFrank
Patrick Gold
02/23/2022, 11:39 PMFrank
Patrick Gold
02/23/2022, 11:41 PMFrank
Frank
git status after sst deploy in CI, do u see a cdk.context.json getting updated/created?Patrick Gold
02/23/2022, 11:42 PMPatrick Gold
02/23/2022, 11:43 PMFrank
cdk.context.json, so when u deploy again in the future, it doesn’t use the newer AMI image.Frank
cdk.context.json.Patrick Gold
02/23/2022, 11:45 PMFrank
git status after deploy in CI would answer that.Patrick Gold
02/23/2022, 11:46 PMPatrick Gold
02/23/2022, 11:46 PMFrank
Frank
Patrick Gold
02/23/2022, 11:47 PMPatrick Gold
02/23/2022, 11:48 PMFrank
Frank
Patrick Gold
02/23/2022, 11:50 PMFrank
thdxr
02/24/2022, 12:06 AMPatrick Gold
02/24/2022, 12:08 AMPatrick Gold
02/24/2022, 12:08 AM