see Status of cdk stacks
- Write CDK Stack names in csv
cdk ls > stacks.csv
cdkstat
You will see the Cloudformation State of only the Stacks managed by CDK
Name Status Description
---- ------ -----------
application CREATE_COMPLETE Application Server
securitygroups CREATE_COMPLETE Security Groups
lambda CREATE_COMPLETE Serverless Stuff
ckdstat securitygroups
Logical ID Pysical ID Type Status
---------- ---------- ----------- -----------
SG1 sg-00026dad358d5e2a3 AWS::EC2::SecurityGroup CREATE_COMPLETE
CDKMetadata ae25d3b0-ce8c-11eb-a6c0-0ae8c75 AWS::CDK::Metadata CREATE_COMPLETE
SG007 sg-02393c66de6a16973 AWS::EC2::SecurityGroup CREATE_COMPLETE
- Create binary
go build -o cdkstat main/main.go
- Move binary into PATH
e.g.
mv cdkstat /usr/local/bin/
If you have those stacks locally:
cat stacks.csv
SecurityStack
NoThereStack
cdkstat
will give
Name Status
---- ------
SecurityStack CREATE_COMPLETE
NoThereStack LOCAL_ONLY