Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Production release: 3.21.2 #1881

Closed
wants to merge 1 commit into from
Closed

Production release: 3.21.2 #1881

wants to merge 1 commit into from

Conversation

patheard
Copy link
Member

@patheard patheard commented Aug 26, 2024

Summary

Update dependencies and fix editor display bug.

Related

Copy link

Production: ecs

✅   Terraform Init: success
✅   Terraform Validate: success
✅   Terraform Format: success
✅   Terraform Plan: success
✅   Conftest: success

⚠️   Warning: resources will be destroyed by this change!

Plan: 1 to add, 1 to change, 1 to destroy
Show summary
CHANGE NAME
update aws_ecs_service.wordpress_service
recreate aws_ecs_task_definition.wordpress_task
Show plan
Resource actions are indicated with the following symbols:
  ~ update in-place
-/+ destroy and then create replacement

Terraform will perform the following actions:

  # aws_ecs_service.wordpress_service will be updated in-place
  ~ resource "aws_ecs_service" "wordpress_service" {
        id                                 = "arn:aws:ecs:ca-central-1:472286471787:service/wordpress/wordpress"
        name                               = "wordpress"
        tags                               = {
            "CostCentre" = "PlatformGCArticles"
        }
      ~ task_definition                    = "arn:aws:ecs:ca-central-1:472286471787:task-definition/wordpress:100" -> (known after apply)
        # (15 unchanged attributes hidden)

        # (4 unchanged blocks hidden)
    }

  # aws_ecs_task_definition.wordpress_task must be replaced
-/+ resource "aws_ecs_task_definition" "wordpress_task" {
      ~ arn                      = "arn:aws:ecs:ca-central-1:472286471787:task-definition/wordpress:100" -> (known after apply)
      ~ arn_without_revision     = "arn:aws:ecs:ca-central-1:472286471787:task-definition/wordpress" -> (known after apply)
      ~ container_definitions    = jsonencode(
          ~ [
              ~ {
                  - Command                = null
                  - Cpu                    = 0
                  - CredentialSpecs        = null
                  - DependsOn              = null
                  - DisableNetworking      = null
                  - DnsSearchDomains       = null
                  - DnsServers             = null
                  - DockerLabels           = null
                  - DockerSecurityOptions  = null
                  - EntryPoint             = null
                  - Environment            = []
                  - EnvironmentFiles       = null
                  - Essential              = true
                  - ExtraHosts             = null
                  - FirelensConfiguration  = null
                  - HealthCheck            = null
                  - Hostname               = null
                  - Image                  = "472286471787.dkr.ecr.ca-central-1.amazonaws.com/platform/apache:v1.2.0"
                  - Interactive            = null
                  - Links                  = null
                  - LinuxParameters        = null
                  - LogConfiguration       = {
                      - LogDriver     = "awslogs"
                      - Options       = {
                          - awslogs-group         = "/aws/ecs/wordpress"
                          - awslogs-region        = "ca-central-1"
                          - awslogs-stream-prefix = "wordpress-task"
                        }
                      - SecretOptions = null
                    }
                  - Memory                 = null
                  - MemoryReservation      = null
                  - MountPoints            = []
                  - Name                   = "apache"
                  - PortMappings           = [
                      - {
                          - AppProtocol        = ""
                          - ContainerPort      = 443
                          - ContainerPortRange = null
                          - HostPort           = 443
                          - Name               = null
                          - Protocol           = "tcp"
                        },
                    ]
                  - Privileged             = null
                  - PseudoTerminal         = null
                  - ReadonlyRootFilesystem = null
                  - RepositoryCredentials  = null
                  - ResourceRequirements   = null
                  - Secrets                = null
                  - StartTimeout           = null
                  - StopTimeout            = null
                  - SystemControls         = []
                  - Ulimits                = null
                  - User                   = null
                  - VolumesFrom            = [
                      - {
                          - ReadOnly        = true
                          - SourceContainer = "wordpress"
                        },
                    ]
                  - WorkingDirectory       = null
                  + essential              = true
                  + image                  = "472286471787.dkr.ecr.ca-central-1.amazonaws.com/platform/apache:v1.2.0"
                  + logConfiguration       = {
                      + logDriver = "awslogs"
                      + options   = {
                          + awslogs-group         = "/aws/ecs/wordpress"
                          + awslogs-region        = "ca-central-1"
                          + awslogs-stream-prefix = "wordpress-task"
                        }
                    }
                  + name                   = "apache"
                  + portMappings           = [
                      + {
                          + containerPort = 443
                          + hostPort      = 443
                          + protocol      = "tcp"
                        },
                    ]
                  + volumesFrom            = [
                      + {
                          + readOnly        = true
                          + sourceContainer = "wordpress"
                        },
                    ]
                },
              ~ {
                  - Command                = null
                  - Cpu                    = 0
                  - CredentialSpecs        = null
                  - DependsOn              = null
                  - DisableNetworking      = null
                  - DnsSearchDomains       = null
                  - DnsServers             = null
                  - DockerLabels           = null
                  - DockerSecurityOptions  = null
                  - EntryPoint             = null
                  - Environment            = [
                      - {
                          - Name  = "C3_DISTRIBUTION_ID"
                          - Value = "E1HX1N6D5W92G9"
                        },
                      - {
                          - Name  = "DEFAULT_DOMAIN"
                          - Value = "articles.alpha.canada.ca"
                        },
                      - {
                          - Name  = "S3_UPLOADS_BUCKET_URL"
                          - Value = "https://articles.alpha.canada.ca"
                        },
                      - {
                          - Name  = "WORDPRESS_CONFIG_EXTRA"
                          - Value = "define('WP_HOME','https://articles.alpha.canada.ca');define('WP_SITEURL','https://articles.alpha.canada.ca');define('MYSQL_CLIENT_FLAGS', MYSQLI_CLIENT_SSL);"
                        },
                      - {
                          - Name  = "WORDPRESS_DEBUG"
                          - Value = "1"
                        },
                      - {
                          - Name  = "WORDPRESS_DEBUG_LOG"
                          - Value = "/dev/stdout"
                        },
                    ]
                  - EnvironmentFiles       = null
                  - Essential              = true
                  - ExtraHosts             = null
                  - FirelensConfiguration  = null
                  - HealthCheck            = null
                  - Hostname               = null
                  - Image                  = "472286471787.dkr.ecr.ca-central-1.amazonaws.com/platform/wordpress:v3.21.1"
                  - Interactive            = null
                  - Links                  = null
                  - LinuxParameters        = null
                  - LogConfiguration       = {
                      - LogDriver     = "awslogs"
                      - Options       = {
                          - awslogs-group         = "/aws/ecs/wordpress"
                          - awslogs-region        = "ca-central-1"
                          - awslogs-stream-prefix = "wordpress-task"
                        }
                      - SecretOptions = null
                    }
                  - Memory                 = null
                  - MemoryReservation      = null
                  - MountPoints            = []
                  - Name                   = "wordpress"
                  - PortMappings           = [
                      - {
                          - AppProtocol        = ""
                          - ContainerPort      = 9000
                          - ContainerPortRange = null
                          - HostPort           = 9000
                          - Name               = null
                          - Protocol           = "tcp"
                        },
                    ]
                  - Privileged             = null
                  - PseudoTerminal         = null
                  - ReadonlyRootFilesystem = null
                  - RepositoryCredentials  = null
                  - ResourceRequirements   = null
                  - Secrets                = [
                      - {
                          - Name      = "C3_AWS_ACCESS_KEY_ID"
                          - ValueFrom = "arn:aws:secretsmanager:ca-central-1:472286471787:secret:c3_aws_access_key_id_ptvk59-Nn4jAU"
                        },
                      - {
                          - Name      = "C3_AWS_SECRET_ACCESS_KEY"
                          - ValueFrom = "arn:aws:secretsmanager:ca-central-1:472286471787:secret:c3_aws_secret_access_key_ptvk59-VlIGTT"
                        },
                      - {
                          - Name      = "DEFAULT_LIST_MANAGER_API_KEY"
                          - ValueFrom = "arn:aws:secretsmanager:ca-central-1:472286471787:secret:default_list_manager_api_key_ptvk59-YXq6Ew"
                        },
                      - {
                          - Name      = "DEFAULT_NOTIFY_API_KEY"
                          - ValueFrom = "arn:aws:secretsmanager:ca-central-1:472286471787:secret:default_notify_api_key_ptvk59-IVd2Rv"
                        },
                      - {
                          - Name      = "ENCRYPTION_KEY"
                          - ValueFrom = "arn:aws:secretsmanager:ca-central-1:472286471787:secret:encryption_key_ptvk59-1SdDHD"
                        },
                      - {
                          - Name      = "JWT_AUTH_SECRET_KEY"
                          - ValueFrom = "arn:aws:secretsmanager:ca-central-1:472286471787:secret:jwt_auth_secret_key_ptvk59-5wsjGD"
                        },
                      - {
                          - Name      = "LIST_MANAGER_ENDPOINT"
                          - ValueFrom = "arn:aws:secretsmanager:ca-central-1:472286471787:secret:list_manager_endpoint_ptvk59-ngOqW7"
                        },
                      - {
                          - Name      = "S3_UPLOADS_BUCKET"
                          - ValueFrom = "arn:aws:secretsmanager:ca-central-1:472286471787:secret:s3_uploads_bucket_ptvk59-YXq6Ew"
                        },
                      - {
                          - Name      = "S3_UPLOADS_KEY"
                          - ValueFrom = "arn:aws:secretsmanager:ca-central-1:472286471787:secret:s3_uploads_key_ptvk59-Z8ZEB3"
                        },
                      - {
                          - Name      = "S3_UPLOADS_SECRET"
                          - ValueFrom = "arn:aws:secretsmanager:ca-central-1:472286471787:secret:s3_uploads_secret_ptvk59-ngOqW7"
                        },
                      - {
                          - Name      = "WORDPRESS_AUTH_KEY"
                          - ValueFrom = "arn:aws:secretsmanager:ca-central-1:472286471787:secret:wordpress_auth_key_ptvk59-3e0G4j"
                        },
                      - {
                          - Name      = "WORDPRESS_AUTH_SALT"
                          - ValueFrom = "arn:aws:secretsmanager:ca-central-1:472286471787:secret:wordpress_auth_salt_ptvk59-WeE8z7"
                        },
                      - {
                          - Name      = "WORDPRESS_DB_HOST"
                          - ValueFrom = "arn:aws:secretsmanager:ca-central-1:472286471787:secret:wordpress_database_host_9shuao-uAbPIR"
                        },
                      - {
                          - Name      = "WORDPRESS_DB_NAME"
                          - ValueFrom = "arn:aws:secretsmanager:ca-central-1:472286471787:secret:wordpress_database_name_9shuao-SF8e8n"
                        },
                      - {
                          - Name      = "WORDPRESS_DB_PASSWORD"
                          - ValueFrom = "arn:aws:secretsmanager:ca-central-1:472286471787:secret:wordpress_database_password_9shuao-FA63fQ"
                        },
                      - {
                          - Name      = "WORDPRESS_DB_USER"
                          - ValueFrom = "arn:aws:secretsmanager:ca-central-1:472286471787:secret:wordpress_database_username_9shuao-3zc5KP"
                        },
                      - {
                          - Name      = "WORDPRESS_LOGGED_IN_KEY"
                          - ValueFrom = "arn:aws:secretsmanager:ca-central-1:472286471787:secret:wordpress_logged_in_key_ptvk59-bqgc4S"
                        },
                      - {
                          - Name      = "WORDPRESS_LOGGED_IN_SALT"
                          - ValueFrom = "arn:aws:secretsmanager:ca-central-1:472286471787:secret:wordpress_logged_in_salt_ptvk59-zGhyxx"
                        },
                      - {
                          - Name      = "WORDPRESS_NONCE_KEY"
                          - ValueFrom = "arn:aws:secretsmanager:ca-central-1:472286471787:secret:wordpress_nonce_key_ptvk59-8KYC54"
                        },
                      - {
                          - Name      = "WORDPRESS_NONCE_SALT"
                          - ValueFrom = "arn:aws:secretsmanager:ca-central-1:472286471787:secret:wordpress_nonce_salt_ptvk59-WcvWSM"
                        },
                      - {
                          - Name      = "WORDPRESS_SECURE_AUTH_KEY"
                          - ValueFrom = "arn:aws:secretsmanager:ca-central-1:472286471787:secret:wordpress_secure_auth_key_ptvk59-9SWXj7"
                        },
                      - {
                          - Name      = "WORDPRESS_SECURE_AUTH_SALT"
                          - ValueFrom = "arn:aws:secretsmanager:ca-central-1:472286471787:secret:wordpress_secure_auth_salt_ptvk59-IVd2Rv"
                        },
                      - {
                          - Name      = "WPML_SITE_KEY"
                          - ValueFrom = "arn:aws:secretsmanager:ca-central-1:472286471787:secret:wpml_site_key_ptvk59-WpQBaB"
                        },
                      - {
                          - Name      = "ZENDESK_API_URL"
                          - ValueFrom = "arn:aws:secretsmanager:ca-central-1:472286471787:secret:zendesk_api_url_ptvk59-1Dsrpp"
                        },
                    ]
                  - StartTimeout           = null
                  - StopTimeout            = null
                  - SystemControls         = []
                  - Ulimits                = null
                  - User                   = null
                  - VolumesFrom            = []
                  - WorkingDirectory       = null
                  + environment            = [
                      + {
                          + name  = "C3_DISTRIBUTION_ID"
                          + value = "E1HX1N6D5W92G9"
                        },
                      + {
                          + name  = "DEFAULT_DOMAIN"
                          + value = "articles.alpha.canada.ca"
                        },
                      + {
                          + name  = "S3_UPLOADS_BUCKET_URL"
                          + value = "https://articles.alpha.canada.ca"
                        },
                      + {
                          + name  = "WORDPRESS_CONFIG_EXTRA"
                          + value = "define('WP_HOME','https://articles.alpha.canada.ca');define('WP_SITEURL','https://articles.alpha.canada.ca');define('MYSQL_CLIENT_FLAGS', MYSQLI_CLIENT_SSL);"
                        },
                      + {
                          + name  = "WORDPRESS_DEBUG"
                          + value = "1"
                        },
                      + {
                          + name  = "WORDPRESS_DEBUG_LOG"
                          + value = "/dev/stdout"
                        },
                    ]
                  + essential              = true
                  + image                  = "472286471787.dkr.ecr.ca-central-1.amazonaws.com/platform/wordpress:v3.21.2"
                  + logConfiguration       = {
                      + logDriver = "awslogs"
                      + options   = {
                          + awslogs-group         = "/aws/ecs/wordpress"
                          + awslogs-region        = "ca-central-1"
                          + awslogs-stream-prefix = "wordpress-task"
                        }
                    }
                  + name                   = "wordpress"
                  + portMappings           = [
                      + {
                          + containerPort = 9000
                          + hostPort      = 9000
                          + protocol      = "tcp"
                        },
                    ]
                  + secrets                = [
                      + {
                          + name      = "C3_AWS_ACCESS_KEY_ID"
                          + valueFrom = "arn:aws:secretsmanager:ca-central-1:472286471787:secret:c3_aws_access_key_id_ptvk59-Nn4jAU"
                        },
                      + {
                          + name      = "C3_AWS_SECRET_ACCESS_KEY"
                          + valueFrom = "arn:aws:secretsmanager:ca-central-1:472286471787:secret:c3_aws_secret_access_key_ptvk59-VlIGTT"
                        },
                      + {
                          + name      = "DEFAULT_LIST_MANAGER_API_KEY"
                          + valueFrom = "arn:aws:secretsmanager:ca-central-1:472286471787:secret:default_list_manager_api_key_ptvk59-YXq6Ew"
                        },
                      + {
                          + name      = "DEFAULT_NOTIFY_API_KEY"
                          + valueFrom = "arn:aws:secretsmanager:ca-central-1:472286471787:secret:default_notify_api_key_ptvk59-IVd2Rv"
                        },
                      + {
                          + name      = "ENCRYPTION_KEY"
                          + valueFrom = "arn:aws:secretsmanager:ca-central-1:472286471787:secret:encryption_key_ptvk59-1SdDHD"
                        },
                      + {
                          + name      = "JWT_AUTH_SECRET_KEY"
                          + valueFrom = "arn:aws:secretsmanager:ca-central-1:472286471787:secret:jwt_auth_secret_key_ptvk59-5wsjGD"
                        },
                      + {
                          + name      = "LIST_MANAGER_ENDPOINT"
                          + valueFrom = "arn:aws:secretsmanager:ca-central-1:472286471787:secret:list_manager_endpoint_ptvk59-ngOqW7"
                        },
                      + {
                          + name      = "S3_UPLOADS_BUCKET"
                          + valueFrom = "arn:aws:secretsmanager:ca-central-1:472286471787:secret:s3_uploads_bucket_ptvk59-YXq6Ew"
                        },
                      + {
                          + name      = "S3_UPLOADS_KEY"
                          + valueFrom = "arn:aws:secretsmanager:ca-central-1:472286471787:secret:s3_uploads_key_ptvk59-Z8ZEB3"
                        },
                      + {
                          + name      = "S3_UPLOADS_SECRET"
                          + valueFrom = "arn:aws:secretsmanager:ca-central-1:472286471787:secret:s3_uploads_secret_ptvk59-ngOqW7"
                        },
                      + {
                          + name      = "WORDPRESS_AUTH_KEY"
                          + valueFrom = "arn:aws:secretsmanager:ca-central-1:472286471787:secret:wordpress_auth_key_ptvk59-3e0G4j"
                        },
                      + {
                          + name      = "WORDPRESS_AUTH_SALT"
                          + valueFrom = "arn:aws:secretsmanager:ca-central-1:472286471787:secret:wordpress_auth_salt_ptvk59-WeE8z7"
                        },
                      + {
                          + name      = "WORDPRESS_DB_HOST"
                          + valueFrom = "arn:aws:secretsmanager:ca-central-1:472286471787:secret:wordpress_database_host_9shuao-uAbPIR"
                        },
                      + {
                          + name      = "WORDPRESS_DB_NAME"
                          + valueFrom = "arn:aws:secretsmanager:ca-central-1:472286471787:secret:wordpress_database_name_9shuao-SF8e8n"
                        },
                      + {
                          + name      = "WORDPRESS_DB_PASSWORD"
                          + valueFrom = "arn:aws:secretsmanager:ca-central-1:472286471787:secret:wordpress_database_password_9shuao-FA63fQ"
                        },
                      + {
                          + name      = "WORDPRESS_DB_USER"
                          + valueFrom = "arn:aws:secretsmanager:ca-central-1:472286471787:secret:wordpress_database_username_9shuao-3zc5KP"
                        },
                      + {
                          + name      = "WORDPRESS_LOGGED_IN_KEY"
                          + valueFrom = "arn:aws:secretsmanager:ca-central-1:472286471787:secret:wordpress_logged_in_key_ptvk59-bqgc4S"
                        },
                      + {
                          + name      = "WORDPRESS_LOGGED_IN_SALT"
                          + valueFrom = "arn:aws:secretsmanager:ca-central-1:472286471787:secret:wordpress_logged_in_salt_ptvk59-zGhyxx"
                        },
                      + {
                          + name      = "WORDPRESS_NONCE_KEY"
                          + valueFrom = "arn:aws:secretsmanager:ca-central-1:472286471787:secret:wordpress_nonce_key_ptvk59-8KYC54"
                        },
                      + {
                          + name      = "WORDPRESS_NONCE_SALT"
                          + valueFrom = "arn:aws:secretsmanager:ca-central-1:472286471787:secret:wordpress_nonce_salt_ptvk59-WcvWSM"
                        },
                      + {
                          + name      = "WORDPRESS_SECURE_AUTH_KEY"
                          + valueFrom = "arn:aws:secretsmanager:ca-central-1:472286471787:secret:wordpress_secure_auth_key_ptvk59-9SWXj7"
                        },
                      + {
                          + name      = "WORDPRESS_SECURE_AUTH_SALT"
                          + valueFrom = "arn:aws:secretsmanager:ca-central-1:472286471787:secret:wordpress_secure_auth_salt_ptvk59-IVd2Rv"
                        },
                      + {
                          + name      = "WPML_SITE_KEY"
                          + valueFrom = "arn:aws:secretsmanager:ca-central-1:472286471787:secret:wpml_site_key_ptvk59-WpQBaB"
                        },
                      + {
                          + name      = "ZENDESK_API_URL"
                          + valueFrom = "arn:aws:secretsmanager:ca-central-1:472286471787:secret:zendesk_api_url_ptvk59-1Dsrpp"
                        },
                    ]
                },
            ] # forces replacement
        )
      ~ id                       = "wordpress" -> (known after apply)
      ~ revision                 = 100 -> (known after apply)
        tags                     = {
            "CostCentre" = "PlatformGCArticles"
        }
        # (12 unchanged attributes hidden)
    }

Plan: 1 to add, 1 to change, 1 to destroy.

─────────────────────────────────────────────────────────────────────────────

Saved the plan to: plan.tfplan

To perform exactly these actions, run the following command to apply:
    terraform apply "plan.tfplan"
Show Conftest results
WARN - plan.json - main - Missing Common Tags: ["aws_appautoscaling_target.wordpress"]
WARN - plan.json - main - Missing Common Tags: ["aws_cloudwatch_event_rule.ecs_events"]
WARN - plan.json - main - Missing Common Tags: ["aws_cloudwatch_log_group.ecs_events"]
WARN - plan.json - main - Missing Common Tags: ["aws_cloudwatch_log_group.wordpress_ecs_logs"]
WARN - plan.json - main - Missing Common Tags: ["aws_ecs_cluster.wordpress"]
WARN - plan.json - main - Missing Common Tags: ["aws_ecs_service.wordpress_service"]
WARN - plan.json - main - Missing Common Tags: ["aws_ecs_task_definition.wordpress_task"]
WARN - plan.json - main - Missing Common Tags: ["aws_iam_policy.wordpress_ecs_task_create_tunnel"]
WARN - plan.json - main - Missing Common Tags: ["aws_iam_policy.wordpress_ecs_task_get_ecr_image"]
WARN - plan.json - main - Missing Common Tags: ["aws_iam_policy.wordpress_ecs_task_get_secret_value"]
WARN - plan.json - main - Missing Common Tags: ["aws_iam_role.ecs_events_lambda"]
WARN - plan.json - main - Missing Common Tags: ["aws_iam_role.wordpress_ecs_task"]
WARN - plan.json - main - Missing Common Tags: ["aws_lambda_function.ecs_events"]
WARN - plan.json - main - Missing Common Tags: ["aws_secretsmanager_secret.c3_aws_access_key_id"]
WARN - plan.json - main - Missing Common Tags: ["aws_secretsmanager_secret.c3_aws_secret_access_key"]
WARN - plan.json - main - Missing Common Tags: ["aws_secretsmanager_secret.default_list_manager_api_key"]
WARN - plan.json - main - Missing Common Tags: ["aws_secretsmanager_secret.default_notify_api_key"]
WARN - plan.json - main - Missing Common Tags: ["aws_secretsmanager_secret.encryption_key"]
WARN - plan.json - main - Missing Common Tags: ["aws_secretsmanager_secret.jwt_auth_secret_key"]
WARN - plan.json - main - Missing Common Tags: ["aws_secretsmanager_secret.list_manager_endpoint"]
WARN - plan.json - main - Missing Common Tags: ["aws_secretsmanager_secret.s3_uploads_bucket"]
WARN - plan.json - main - Missing Common Tags:...

@patheard patheard self-assigned this Aug 26, 2024
@patheard patheard requested a review from a team August 26, 2024 16:00
@patheard
Copy link
Member Author

Replaced by #1887

@patheard patheard closed this Aug 28, 2024
@patheard patheard deleted the production/3.21.2 branch August 28, 2024 17:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

H1 header displays two underlines simultaneously
2 participants