Skip to content
This repository has been archived by the owner on Apr 17, 2023. It is now read-only.

V0.12 #4

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open

V0.12 #4

wants to merge 8 commits into from

Conversation

captn3m0
Copy link
Member

@captn3m0 captn3m0 commented Jan 21, 2020

Terraform will perform the following actions:

  # aws_route53_record.beta-cname must be replaced
-/+ resource "aws_route53_record" "beta-cname" {
      ~ allow_overwrite = true -> (known after apply)
      ~ fqdn            = "beta.speakforme.in" -> (known after apply)
      ~ id              = "Z1L1U6YQIZESRO_beta_CNAME" -> (known after apply)
        name            = "beta"
        records         = [
            "speakforme.github.io.",
        ]
        ttl             = 1800
        type            = "CNAME"
      ~ zone_id         = "Z1L1U6YQIZESRO" -> (known after apply) # forces replacement
    }

  # aws_route53_record.campaign-a must be replaced
-/+ resource "aws_route53_record" "campaign-a" {
      ~ allow_overwrite = true -> (known after apply)
      ~ fqdn            = "campaign.speakforme.in" -> (known after apply)
      ~ id              = "Z1L1U6YQIZESRO_campaign.speakforme.in_A" -> (known after apply)
        name            = "campaign.speakforme.in"
        records         = [
            "34.199.252.2",
        ]
        ttl             = 300
        type            = "A"
      ~ zone_id         = "Z1L1U6YQIZESRO" -> (known after apply) # forces replacement
    }

  # aws_route53_record.email-mx must be replaced
-/+ resource "aws_route53_record" "email-mx" {
      ~ allow_overwrite = true -> (known after apply)
      ~ fqdn            = "email.speakforme.in" -> (known after apply)
      ~ id              = "Z1L1U6YQIZESRO_email_MX" -> (known after apply)
        name            = "email"
        records         = [
            "10 inbound-smtp.eu-west-1.amazonaws.com.",
        ]
        ttl             = 60
        type            = "MX"
      ~ zone_id         = "Z1L1U6YQIZESRO" -> (known after apply) # forces replacement
    }

  # aws_route53_record.netlify-cname must be replaced
-/+ resource "aws_route53_record" "netlify-cname" {
      ~ allow_overwrite = true -> (known after apply)
      ~ fqdn            = "netlify.speakforme.in" -> (known after apply)
      ~ id              = "Z1L1U6YQIZESRO_netlify_CNAME" -> (known after apply)
        name            = "netlify"
        records         = [
            "speakforme.netlify.com.",
        ]
        ttl             = 1800
        type            = "CNAME"
      ~ zone_id         = "Z1L1U6YQIZESRO" -> (known after apply) # forces replacement
    }

  # aws_route53_record.postal-a must be replaced
-/+ resource "aws_route53_record" "postal-a" {
      ~ allow_overwrite = true -> (known after apply)
      ~ fqdn            = "postal.speakforme.in" -> (known after apply)
      ~ id              = "Z1L1U6YQIZESRO_postal_A" -> (known after apply)
        name            = "postal"
        records         = [
            "18.211.250.184",
        ]
        ttl             = 300
        type            = "A"
      ~ zone_id         = "Z1L1U6YQIZESRO" -> (known after apply) # forces replacement
    }

  # aws_route53_record.postal-mx-a must be replaced
-/+ resource "aws_route53_record" "postal-mx-a" {
      ~ allow_overwrite = true -> (known after apply)
      ~ fqdn            = "mx.postal.speakforme.in" -> (known after apply)
      ~ id              = "Z1L1U6YQIZESRO_mx.postal_A" -> (known after apply)
        name            = "mx.postal"
        records         = [
            "18.211.250.184",
        ]
        ttl             = 300
        type            = "A"
      ~ zone_id         = "Z1L1U6YQIZESRO" -> (known after apply) # forces replacement
    }

  # aws_route53_record.postal-rp-a must be replaced
-/+ resource "aws_route53_record" "postal-rp-a" {
      ~ allow_overwrite = true -> (known after apply)
      ~ fqdn            = "rp.postal.speakforme.in" -> (known after apply)
      ~ id              = "Z1L1U6YQIZESRO_rp.postal_A" -> (known after apply)
        name            = "rp.postal"
        records         = [
            "18.211.250.184",
        ]
        ttl             = 300
        type            = "A"
      ~ zone_id         = "Z1L1U6YQIZESRO" -> (known after apply) # forces replacement
    }

  # aws_route53_record.postal-sf-a must be replaced
-/+ resource "aws_route53_record" "postal-sf-a" {
      ~ allow_overwrite = true -> (known after apply)
      ~ fqdn            = "sf.postal.speakforme.in" -> (known after apply)
      ~ id              = "Z1L1U6YQIZESRO_sf.postal_A" -> (known after apply)
        name            = "sf.postal"
        records         = [
            "18.211.250.184",
        ]
        ttl             = 300
        type            = "A"
      ~ zone_id         = "Z1L1U6YQIZESRO" -> (known after apply) # forces replacement
    }

  # aws_route53_record.psrp-cname must be replaced
-/+ resource "aws_route53_record" "psrp-cname" {
      ~ allow_overwrite = true -> (known after apply)
      ~ fqdn            = "psrp.speakforme.in" -> (known after apply)
      ~ id              = "Z1L1U6YQIZESRO_psrp_CNAME" -> (known after apply)
        name            = "psrp"
        records         = [
            "rp.postal.speakforme.in.",
        ]
        ttl             = 1800
        type            = "CNAME"
      ~ zone_id         = "Z1L1U6YQIZESRO" -> (known after apply) # forces replacement
    }

  # aws_route53_record.psrp-email-cname must be replaced
-/+ resource "aws_route53_record" "psrp-email-cname" {
      ~ allow_overwrite = true -> (known after apply)
      ~ fqdn            = "psrp.email.speakforme.in" -> (known after apply)
      ~ id              = "Z1L1U6YQIZESRO_psrp.email_CNAME" -> (known after apply)
        name            = "psrp.email"
        records         = [
            "rp.postal.speakforme.in.",
        ]
        ttl             = 1800
        type            = "CNAME"
      ~ zone_id         = "Z1L1U6YQIZESRO" -> (known after apply) # forces replacement
    }

  # aws_route53_record.routes-mx must be replaced
-/+ resource "aws_route53_record" "routes-mx" {
      ~ allow_overwrite = true -> (known after apply)
      ~ fqdn            = "routes.speakforme.in" -> (known after apply)
      ~ id              = "Z1L1U6YQIZESRO_routes_MX" -> (known after apply)
        name            = "routes"
        records         = [
            "10 mx.postal.speakforme.in.",
        ]
        ttl             = 1800
        type            = "MX"
      ~ zone_id         = "Z1L1U6YQIZESRO" -> (known after apply) # forces replacement
    }

  # aws_route53_record.speakforme-a must be replaced
-/+ resource "aws_route53_record" "speakforme-a" {
      ~ allow_overwrite = true -> (known after apply)
      ~ fqdn            = "speakforme.in" -> (known after apply)
      ~ id              = "Z1L1U6YQIZESRO_speakforme.in_A" -> (known after apply)
        name            = "speakforme.in"
        records         = [
            "104.198.14.52",
        ]
        ttl             = 300
        type            = "A"
      ~ zone_id         = "Z1L1U6YQIZESRO" -> (known after apply) # forces replacement
    }

  # aws_route53_record.speakforme-mx must be replaced
-/+ resource "aws_route53_record" "speakforme-mx" {
      ~ allow_overwrite = true -> (known after apply)
      ~ fqdn            = "speakforme.in" -> (known after apply)
      ~ id              = "Z1L1U6YQIZESRO_speakforme.in_MX" -> (known after apply)
        name            = "speakforme.in"
        records         = [
            "10 mx.postal.speakforme.in.",
        ]
        ttl             = 1800
        type            = "MX"
      ~ zone_id         = "Z1L1U6YQIZESRO" -> (known after apply) # forces replacement
    }

  # aws_route53_record.storage-a must be replaced
-/+ resource "aws_route53_record" "storage-a" {
      ~ allow_overwrite = true -> (known after apply)
      ~ fqdn            = "storage.speakforme.in" -> (known after apply)
      ~ id              = "Z1L1U6YQIZESRO_storage_A" -> (known after apply)
        name            = "storage"
        records         = [
            "35.153.240.239",
        ]
        ttl             = 300
        type            = "A"
      ~ zone_id         = "Z1L1U6YQIZESRO" -> (known after apply) # forces replacement
    }

  # aws_route53_record.www must be replaced
-/+ resource "aws_route53_record" "www" {
      ~ allow_overwrite = true -> (known after apply)
      ~ fqdn            = "www.speakforme.in" -> (known after apply)
      ~ id              = "Z1L1U6YQIZESRO_www_CNAME" -> (known after apply)
        name            = "www"
        records         = [
            "speakforme.netlify.com.",
        ]
        ttl             = 1800
        type            = "CNAME"
      ~ zone_id         = "Z1L1U6YQIZESRO" -> (known after apply) # forces replacement
    }

  # aws_route53_zone.campaign-domain will be created
  + resource "aws_route53_zone" "campaign-domain" {
      + comment       = "Managed by Terraform"
      + force_destroy = false
      + id            = (known after apply)
      + name          = "speakforme.in"
      + name_servers  = (known after apply)
      + tags          = {
          + "Environment" = "production"
          + "terraform"   = "true"
        }
      + vpc_id        = (known after apply)
      + vpc_region    = (known after apply)
      + zone_id       = (known after apply)
    }

  # aws_route53_zone.speakforme-in will be destroyed
  - resource "aws_route53_zone" "speakforme-in" {
      - comment       = "Managed by Terraform" -> null
      - force_destroy = false -> null
      - id            = "Z1L1U6YQIZESRO" -> null
      - name          = "speakforme.in." -> null
      - name_servers  = [
          - "ns-1337.awsdns-39.org",
          - "ns-1539.awsdns-00.co.uk",
          - "ns-287.awsdns-35.com",
          - "ns-978.awsdns-58.net",
        ] -> null
      - tags          = {
          - "Environment" = "production"
          - "terraform"   = "1"
        } -> null
      - zone_id       = "Z1L1U6YQIZESRO" -> null
    }

  # aws_s3_bucket.emails will be updated in-place
  ~ resource "aws_s3_bucket" "emails" {
        acl                         = "private"
        arn                         = "arn:aws:s3:::speakforme-emails"
        bucket                      = "speakforme-emails"
        bucket_domain_name          = "speakforme-emails.s3.amazonaws.com"
        bucket_regional_domain_name = "speakforme-emails.s3.eu-west-1.amazonaws.com"
        force_destroy               = false
        hosted_zone_id              = "Z1BKCTXD74EZPE"
        id                          = "speakforme-emails"
      - policy                      = jsonencode(
            {
              - Statement = [
                  - {
                      - Action    = "s3:PutObject"
                      - Condition = {
                          - StringEquals = {
                              - aws:Referer = "531324969672"
                            }
                        }
                      - Effect    = "Allow"
                      - Principal = {
                          - Service = "ses.amazonaws.com"
                        }
                      - Resource  = "arn:aws:s3:::speakforme-emails/*"
                      - Sid       = "AllowSESPuts"
                    },
                ]
              - Version   = "2012-10-17"
            }
        ) -> null
        region                      = "eu-west-1"
        request_payer               = "BucketOwner"
      ~ tags                        = {
            "Name"        = "speakforme-emails"
            "environment" = "production"
          ~ "terraform"   = "1" -> "true"
        }

        lifecycle_rule {
            abort_incomplete_multipart_upload_days = 0
            enabled                                = true
            id                                     = "world"
            tags                                   = {}

            transition {
                days          = 30
                storage_class = "STANDARD_IA"
            }
        }

        server_side_encryption_configuration {
            rule {
                apply_server_side_encryption_by_default {
                    sse_algorithm = "AES256"
                }
            }
        }

        versioning {
            enabled    = false
            mfa_delete = false
        }
    }

  # aws_s3_bucket.infrastructure will be updated in-place
  ~ resource "aws_s3_bucket" "infrastructure" {
        acl                         = "private"
        arn                         = "arn:aws:s3:::speakforme-infrastructure"
        bucket                      = "speakforme-infrastructure"
        bucket_domain_name          = "speakforme-infrastructure.s3.amazonaws.com"
        bucket_regional_domain_name = "speakforme-infrastructure.s3.ap-south-1.amazonaws.com"
        force_destroy               = false
        hosted_zone_id              = "Z11RGJOFQNVJUP"
        id                          = "speakforme-infrastructure"
        region                      = "ap-south-1"
        request_payer               = "BucketOwner"
      ~ tags                        = {
            "Name"        = "speakforme-infrastructure"
            "environment" = "production"
          ~ "terraform"   = "1" -> "true"
        }

        server_side_encryption_configuration {
            rule {
                apply_server_side_encryption_by_default {
                    sse_algorithm = "AES256"
                }
            }
        }

        versioning {
            enabled    = false
            mfa_delete = false
        }
    }

  # aws_s3_bucket_policy.email-bucket will be created
  + resource "aws_s3_bucket_policy" "email-bucket" {
      + bucket = "speakforme-emails"
      + id     = (known after apply)
      + policy = jsonencode(
            {
              + Statement = [
                  + {
                      + Action    = "s3:PutObject"
                      + Condition = {
                          + StringEquals = {
                              + aws:Referer = "531324969672"
                            }
                        }
                      + Effect    = "Allow"
                      + Principal = {
                          + Service = "ses.amazonaws.com"
                        }
                      + Resource  = "arn:aws:s3:::speakforme-emails/*"
                      + Sid       = "AllowSESPuts"
                    },
                ]
              + Version   = "2012-10-17"
            }
        )
    }

Plan: 17 to add, 2 to change, 16 to destroy.


@captn3m0 captn3m0 self-assigned this Jan 21, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants