Closed marciotoshio closed 2 years ago
CF Stack tags
➜ cloud-database-api ruby-2.7.3 (CPD-7501) ✔ aws cloudformation describe-stacks --stack-name cdb-api-dev-toshio --query Stacks[].Tags [ [ { "Key": "moonshot_application", "Value": "cdb-api" }, { "Key": "moonshot_environment", "Value": "dev-toshio" } ] ]
Update stack with tags
➜ cloud-database-api ruby-2.7.3 (CPD-7501) ✔ bundle exec moonshot update -n dev-toshio --tag tag1=A --tag tag2=B <aws:cloudservicesdev> Using the Central Model for authentication Central Account OTP Code: 970504 Version 2 of the Ruby SDK will enter maintenance mode as of November 20, 2020. To continue receiving service updates and new features, please upgrade to Version 3. More information can be found here: https://aws.amazon.com/blogs/developer/deprecation-schedule-for-aws-sdk-for-ruby-v2/ Using the Central Model for authentication [ ✓ ] [ 0m 1s ] Using existing KMS Key for ParameterKMS! [ ✓ ] [ 0m 0s ] Using previous encrypted value for NewRelicLicenseKey. [ ✓ ] [ 0m 14s ] ChangeSet moonshot-cdb-api-dev-toshio-1666797698 ready! * Modify ALBDefaultTargetGroup (AWS::ElasticLoadBalancingV2::TargetGroup) * Modify ALBListener (AWS::ElasticLoadBalancingV2::Listener) * Modify ALB (AWS::ElasticLoadBalancingV2::LoadBalancer) * Modify AutoScalingGroup (AWS::AutoScaling::AutoScalingGroup) - May be replaced (Conditional) - Caused by LaunchConfig (ResourceReference) * Modify DBCluster (AWS::RDS::DBCluster) * Modify DbInstanceSubscription (AWS::RDS::EventSubscription) * Modify ELBDns (AWS::Route53::RecordSet) * Modify ELBHealthCheck (AWS::Route53::HealthCheck) * Modify IamInstanceProfile (AWS::IAM::InstanceProfile) * Modify IamInstanceRole (AWS::IAM::Role) * Modify LaunchConfig (AWS::AutoScaling::LaunchConfiguration) - May be replaced (Conditional) * Modify PrimaryDbInstance (AWS::RDS::DBInstance) Apply changes? Y Please enter 'yes' or 'no'! Apply changes? yes [ ✓ ] [ 0m 2s ] Executed ChangeSet moonshot-cdb-api-dev-toshio-1666797698 for CloudFormation Stack cdb-api-dev-toshio. [ ✓ ] [ 0m 52s ] CloudFormation Stack cdb-api-dev-toshio successfully updated. [ ✓ ] [ 0m 2s ] CodeDeploy Application cdb-api-dev-toshio already exists. [ ✓ ] [ 0m 1s ] CodeDeploy CodeDeploy Deployment Group cdb-api-dev-toshio already exists. [ ✓ ] [ 0m 3s ] AutoScaling Group(s) up to capacity! [ ✓ ] [ 0m 2s ] Uploading 'cdb-api_1666797807_toshio.tar.gz' to 'cdb-stack-resource-backups-dev' succeeded.
➜ cloud-database-api ruby-2.7.3 (CPD-7501) ✔ aws cloudformation describe-stacks --stack-name cdb-api-dev-toshio --query Stacks[].Tags [ [ { "Key": "tag1", "Value": "A" }, { "Key": "moonshot_application", "Value": "cdb-api" }, { "Key": "moonshot_environment", "Value": "dev-toshio" }, { "Key": "tag2", "Value": "B" } ] ]
CF Stack tags
Update stack with tags
CF Stack tags