Skip to content

Create test#1

Draft
ADobrodey wants to merge 1 commit into
masterfrom
ADobrodey-patch-1
Draft

Create test#1
ADobrodey wants to merge 1 commit into
masterfrom
ADobrodey-patch-1

Conversation

@ADobrodey

Copy link
Copy Markdown
Owner

No description provided.

@ADobrodey

ADobrodey commented Jul 7, 2020

Copy link
Copy Markdown
Owner Author

apply on dev

Changes

#!diff
@@  aws/7s-dev-cst/dev/eu-central-1/sqs/shipment_notification_sender  @@
- resource "aws_sqs_queue" "dead_letter_queue"
! resource "aws_sqs_queue" "this"
~ resource "x"
SHOW DETAILED PLAN
@@  aws/7s-dev-cst/dev/eu-central-1/sqs/shipment_notification_sender  @@

An execution plan has been generated and is shown below.
Resource actions are indicated with the following symbols:
  ~ update in-place
  - destroy

Terraform will perform the following actions:

  # aws_sqs_queue.dead_letter_queue[0] will be destroyed
  - resource "aws_sqs_queue" "dead_letter_queue" {
      - arn                               = "arn:aws:sqs:eu-central-1:773342831034:dev_shipment_notification_sender-DLQ" -> null
      - content_based_deduplication       = false -> null
      - delay_seconds                     = 0 -> null
      - fifo_queue                        = false -> null
      - id                                = "https://sqs.eu-central-1.amazonaws.com/773342831034/dev_shipment_notification_sender-DLQ" -> null
      - kms_data_key_reuse_period_seconds = 300 -> null
      - kms_master_key_id                 = "alias/aws/sqs" -> null
      - max_message_size                  = 262144 -> null
      - message_retention_seconds         = 1209600 -> null
      - name                              = "dev_shipment_notification_sender-DLQ" -> null
      - receive_wait_time_seconds         = 0 -> null
      - tags                              = {
          - "7s:product_line"          = "product_analytics"
          - "7s:team"                  = "infra"
          - "Name"                     = "dev_shipment_notification_sender-DLQ"
          - "devops:automation"        = "terraform"
          - "environment_name"         = "dev"
          - "environment_type"         = "dev"
          - "security:confidentiality" = "internal"
        } -> null
      - visibility_timeout_seconds        = 43200 -> null
    }

  # aws_sqs_queue.this will be updated in-place
  ~ resource "aws_sqs_queue" "this" {
        arn                               = "arn:aws:sqs:eu-central-1:773342831034:dev_shipment_notification_sender"
        content_based_deduplication       = false
        delay_seconds                     = 0
        fifo_queue                        = false
        id                                = "https://sqs.eu-central-1.amazonaws.com/773342831034/dev_shipment_notification_sender"
        kms_data_key_reuse_period_seconds = 300
        kms_master_key_id                 = "alias/aws/sqs"
        max_message_size                  = 262144
        message_retention_seconds         = 345600
        name                              = "dev_shipment_notification_sender"
        policy                            = jsonencode(
            {
                Id        = "__default_policy_ID"
                Statement = [
                    {
                        Action    = [
                            "sqs:ReceiveMessage",
                            "sqs:GetQueueAttributes",
                            "sqs:DeleteMessage",
                        ]
                        Effect    = "Allow"
                        Principal = {
                            AWS = "arn:aws:iam::773342831034:root"
                        }
                        Resource  = "arn:aws:sns:eu-central-1:773342831034:dev_shipment_notification_sender"
                        Sid       = "ReceiveMessageDefaultPolicy"
                    },
                    {
                        Action    = "sqs:SendMessage"
                        Effect    = "Allow"
                        Principal = {
                            AWS = "arn:aws:iam::773342831034:root"
                        }
                        Resource  = "arn:aws:sqs:eu-central-1:773342831034:dev_shipment_notification_sender"
                        Sid       = "SendMessageDefaultPolicy"
                    },
                ]
                Version   = "2012-10-17"
            }
        )
        receive_wait_time_seconds         = 0
      - redrive_policy                    = jsonencode(
            {
              - deadLetterTargetArn = "arn:aws:sqs:eu-central-1:773342831034:dev_shipment_notification_sender-DLQ"
              - maxReceiveCount     = 5
            }
        ) -> null
        tags                              = {
            "7s:product_line"          = "product_analytics"
            "7s:team"                  = "infra"
            "Name"                     = "dev_shipment_notification_sender"
            "devops:automation"        = "terraform"
            "environment_name"         = "dev"
            "environment_type"         = "dev"
            "security:confidentiality" = "internal"
        }
        visibility_timeout_seconds        = 30
    }

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

@ADobrodey ADobrodey marked this pull request as draft October 22, 2020 16:44
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.

1 participant