Tag log groups, Cognito pools and the website bucket with project - #218
Merged
Conversation
Fills the empty tags block on the ECS log group, which covers all ten /ecs/* groups, and adds the project tag to both Home Unite Us Cognito pools and the civictechindex.org bucket. The bucket's value is written literally rather than taken from local.project_name, which holds "civic-tech-index" in that directory where the standard's value is "civictechindex".
Contributor
|
Terraform plan in terraform Plan: 0 to add, 13 to change, 0 to destroy.Terraform used the selected providers to generate the following execution
plan. Resource actions are indicated with the following symbols:
!~ update in-place
Terraform will perform the following actions:
# module.civic-tech-index.aws_s3_bucket.website will be updated in-place
!~ resource "aws_s3_bucket" "website" {
id = "civictechindex.org"
!~ tags = {
+ "project" = "civictechindex"
}
!~ tags_all = {
+ "project" = "civictechindex"
# (1 unchanged element hidden)
}
# (16 unchanged attributes hidden)
# (4 unchanged blocks hidden)
}
# module.home-unite-us.aws_cognito_user_pool.homeuniteus will be updated in-place
!~ resource "aws_cognito_user_pool" "homeuniteus" {
id = "us-west-2_rWxdMKVzy"
name = "home-unite-us"
!~ tags = {
+ "project" = "home-unite-us"
}
!~ tags_all = {
+ "project" = "home-unite-us"
# (1 unchanged element hidden)
}
# (17 unchanged attributes hidden)
# (11 unchanged blocks hidden)
}
# module.home-unite-us.aws_cognito_user_pool.homeuniteus_prod will be updated in-place
!~ resource "aws_cognito_user_pool" "homeuniteus_prod" {
id = "us-west-2_VH24AGQ3p"
name = "Home Unite Us"
!~ tags = {
+ "project" = "home-unite-us"
}
!~ tags_all = {
+ "project" = "home-unite-us"
# (1 unchanged element hidden)
}
# (17 unchanged attributes hidden)
# (11 unchanged blocks hidden)
}
# module.civic-tech-index.module.backend_prod_service.aws_cloudwatch_log_group.this will be updated in-place
!~ resource "aws_cloudwatch_log_group" "this" {
id = "/ecs/cti-backend-prod"
name = "/ecs/cti-backend-prod"
!~ tags = {
+ "project" = "civictechindex"
}
!~ tags_all = {
+ "project" = "civictechindex"
# (1 unchanged element hidden)
}
# (8 unchanged attributes hidden)
}
# module.civic-tech-index.module.backend_stage_service.aws_cloudwatch_log_group.this will be updated in-place
!~ resource "aws_cloudwatch_log_group" "this" {
id = "/ecs/cti-backend-stage"
name = "/ecs/cti-backend-stage"
!~ tags = {
+ "project" = "civictechindex"
}
!~ tags_all = {
+ "project" = "civictechindex"
# (1 unchanged element hidden)
}
# (8 unchanged attributes hidden)
}
# module.civic-tech-jobs.module.civic_tech_jobs_fullstack_stage_service.aws_cloudwatch_log_group.this will be updated in-place
!~ resource "aws_cloudwatch_log_group" "this" {
id = "/ecs/civic-tech-jobs-fs-stage"
name = "/ecs/civic-tech-jobs-fs-stage"
!~ tags = {
+ "project" = "civic-tech-jobs"
}
!~ tags_all = {
+ "project" = "civic-tech-jobs"
# (1 unchanged element hidden)
}
# (8 unchanged attributes hidden)
}
# module.home-unite-us.module.prod_service.aws_cloudwatch_log_group.this will be updated in-place
!~ resource "aws_cloudwatch_log_group" "this" {
id = "/ecs/home-unite-us-fullstack-prod"
name = "/ecs/home-unite-us-fullstack-prod"
!~ tags = {
+ "project" = "home-unite-us"
}
!~ tags_all = {
+ "project" = "home-unite-us"
# (1 unchanged element hidden)
}
# (8 unchanged attributes hidden)
}
# module.home-unite-us.module.qa_service.aws_cloudwatch_log_group.this will be updated in-place
!~ resource "aws_cloudwatch_log_group" "this" {
id = "/ecs/home-unite-us-fullstack-qa"
name = "/ecs/home-unite-us-fullstack-qa"
!~ tags = {
+ "project" = "home-unite-us"
}
!~ tags_all = {
+ "project" = "home-unite-us"
# (1 unchanged element hidden)
}
# (8 unchanged attributes hidden)
}
# module.people-depot.module.backend_dev_service.aws_cloudwatch_log_group.this will be updated in-place
!~ resource "aws_cloudwatch_log_group" "this" {
id = "/ecs/people-depot-backend-dev"
name = "/ecs/people-depot-backend-dev"
!~ tags = {
+ "project" = "people-depot"
}
!~ tags_all = {
+ "project" = "people-depot"
# (1 unchanged element hidden)
}
# (8 unchanged attributes hidden)
}
# module.vrms.module.backend_dev_service.aws_cloudwatch_log_group.this will be updated in-place
!~ resource "aws_cloudwatch_log_group" "this" {
id = "/ecs/vrms-backend-dev"
name = "/ecs/vrms-backend-dev"
!~ tags = {
+ "project" = "vrms"
}
!~ tags_all = {
+ "project" = "vrms"
# (1 unchanged element hidden)
}
# (8 unchanged attributes hidden)
}
# module.vrms.module.backend_prod_service.aws_cloudwatch_log_group.this will be updated in-place
!~ resource "aws_cloudwatch_log_group" "this" {
id = "/ecs/vrms-backend-prod"
name = "/ecs/vrms-backend-prod"
!~ tags = {
+ "project" = "vrms"
}
!~ tags_all = {
+ "project" = "vrms"
# (1 unchanged element hidden)
}
# (8 unchanged attributes hidden)
}
# module.vrms.module.frontend_dev_service.aws_cloudwatch_log_group.this will be updated in-place
!~ resource "aws_cloudwatch_log_group" "this" {
id = "/ecs/vrms-frontend-dev"
name = "/ecs/vrms-frontend-dev"
!~ tags = {
+ "project" = "vrms"
}
!~ tags_all = {
+ "project" = "vrms"
# (1 unchanged element hidden)
}
# (8 unchanged attributes hidden)
}
# module.vrms.module.frontend_prod_service.aws_cloudwatch_log_group.this will be updated in-place
!~ resource "aws_cloudwatch_log_group" "this" {
id = "/ecs/vrms-frontend-prod"
name = "/ecs/vrms-frontend-prod"
!~ tags = {
+ "project" = "vrms"
}
!~ tags_all = {
+ "project" = "vrms"
# (1 unchanged element hidden)
}
# (8 unchanged attributes hidden)
}
Plan: 0 to add, 13 to change, 0 to destroy.✅ Plan applied in Terraform apply (OIDC) #78 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of #197, under epic #206.
Adds the
projecttag to the three untagged resource types that Terraform can actually reach:modules/container/main.tf— thetagsblock was there but empty/ecs/*groupsprojects/home-unite-us/cognito-{prod,qa}.tfprojects/civic-tech-index/s3.tfcivictechindex.orgWhat to look for in the plan
Tags-only changes, nothing added, destroyed or replaced. In particular both Cognito pools must show a tag change and nothing else —
cognito-prod.tfcarries a header comment stating that a proposed change to that file is a defect rather than drift, and this PR is the intended exception to it.The bucket's tag value is written literally on purpose
local.project_nameinprojects/civic-tech-index/iscivic-tech-index, but the tag standard's value iscivictechindex— the same reasonecr.tfhardcodes it. Using the local there would have added a fifth resource to the wrong side of that split. The two spellings are reconciled in #217; the comment ins3.tfsays not to switch it back before then.Not in this PR
These are untagged and stay untagged, because none of them is in Terraform — tagging them would mean a hand-applied change to a resource whose import ticket is already open:
us-west-2_Fn4rkZpuB(Add Cognito to Terraform #17)/aws/rds/instance/incubator-prod-database/{postgresql,upgrade}(Import the RDS subnet group and log groups into Terraform #214)RDSOSMetrics,ecs/homeuniteus, and the four/aws/lambda/*log groupsVerification
terraform init -backend=falseandterraform validatepass locally on Terraform 1.16.0, the pinned version.terraform fmt -checkis clean on all four changed files.After this merges and applies,
./aws-terraform-coverage.ps1 -ProjectTag(added in hackforla/devops#225) should move 13 resources out ofmissing.