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

merging to prod #18

Merged
merged 6 commits into from
Mar 29, 2024
Merged

merging to prod #18

merged 6 commits into from
Mar 29, 2024

Conversation

amavrogiannis
Copy link
Owner

No description provided.

@amavrogiannis
Copy link
Owner Author

Terraform Format and Style 🖌success

Terraform Initialization ⚙️success

Terraform Validation 🤖success

Terraform Plan 📖success

Show Plan

terraform
module.cvalexmav_web.data.aws_acm_certificate.this: Reading...
module.cvalexmav_web.aws_cloudfront_origin_access_identity.this: Refreshing state... [id=E3N5JSK2MAVPB4]
module.cvalexmav_web.aws_s3_bucket.this: Refreshing state... [id=cv.alexmav.co.uk]
module.cvalexmav_web.data.aws_acm_certificate.this: Read complete after 1s [id=arn:aws:acm:us-east-1:582037776064:certificate/2ab006fe-f83c-4725-ab17-2577da1cd3d2]
module.cvalexmav_web.aws_s3_bucket_public_access_block.this: Refreshing state... [id=cv.alexmav.co.uk]
module.cvalexmav_web.aws_s3_bucket_ownership_controls.this: Refreshing state... [id=cv.alexmav.co.uk]
module.cvalexmav_web.aws_s3_bucket_website_configuration.this[0]: Refreshing state... [id=cv.alexmav.co.uk]
module.cvalexmav_web.data.aws_iam_policy_document.this_policy: Reading...
module.cvalexmav_web.aws_s3_bucket_server_side_encryption_configuration.this: Refreshing state... [id=cv.alexmav.co.uk]
module.cvalexmav_web.data.aws_iam_policy_document.this_policy: Read complete after 0s [id=2599627922]
module.cvalexmav_web.aws_s3_bucket_policy.this[0]: Refreshing state... [id=cv.alexmav.co.uk]

Terraform used the selected providers to generate the following execution
plan. Resource actions are indicated with the following symbols:
  + create

Terraform will perform the following actions:

  # module.cvalexmav_web.aws_cloudfront_distribution.this will be created
  + resource "aws_cloudfront_distribution" "this" {
      + aliases                         = [
          + "cv.alexmav.co.uk",
        ]
      + arn                             = (known after apply)
      + caller_reference                = (known after apply)
      + comment                         = "Managed Terraform Resource"
      + continuous_deployment_policy_id = (known after apply)
      + default_root_object             = "index.html"
      + domain_name                     = (known after apply)
      + enabled                         = true
      + etag                            = (known after apply)
      + hosted_zone_id                  = (known after apply)
      + http_version                    = "http2"
      + id                              = (known after apply)
      + in_progress_validation_batches  = (known after apply)
      + is_ipv6_enabled                 = true
      + last_modified_time              = (known after apply)
      + price_class                     = "PriceClass_100"
      + retain_on_delete                = false
      + staging                         = false
      + status                          = (known after apply)
      + tags                            = {
          + "Environment"   = "Production"
          + "Service_Group" = "CV_Website"
        }
      + tags_all                        = {
          + "Environment"   = "Production"
          + "Service_Group" = "CV_Website"
          + "Terraform"     = "TRUE"
        }
      + trusted_key_groups              = (known after apply)
      + trusted_signers                 = (known after apply)
      + wait_for_deployment             = true

      + default_cache_behavior {
          + allowed_methods        = [
              + "GET",
              + "HEAD",
              + "OPTIONS",
            ]
          + cached_methods         = [
              + "GET",
              + "HEAD",
            ]
          + compress               = false
          + default_ttl            = 1800
          + max_ttl                = 3600
          + min_ttl                = 0
          + target_origin_id       = "Application"
          + trusted_key_groups     = (known after apply)
          + trusted_signers        = (known after apply)
          + viewer_protocol_policy = "redirect-to-https"

          + forwarded_values {
              + headers                 = (known after apply)
              + query_string            = false
              + query_string_cache_keys = (known after apply)

              + cookies {
                  + forward           = "none"
                  + whitelisted_names = (known after apply)
                }
            }
        }

      + ordered_cache_behavior {
          + allowed_methods        = [
              + "GET",
              + "HEAD",
              + "OPTIONS",
            ]
          + cached_methods         = [
              + "GET",
              + "HEAD",
              + "OPTIONS",
            ]
          + compress               = true
          + default_ttl            = 600
          + max_ttl                = 3600
          + min_ttl                = 0
          + path_pattern           = "/content/immutable/*"
          + target_origin_id       = "Application"
          + viewer_protocol_policy = "redirect-to-https"

          + forwarded_values {
              + headers                 = [
                  + "Origin",
                ]
              + query_string            = false
              + query_string_cache_keys = (known after apply)

              + cookies {
                  + forward = "none"
                }
            }
        }
      + ordered_cache_behavior {
          + allowed_methods        = [
              + "GET",
              + "HEAD",
              + "OPTIONS",
            ]
          + cached_methods         = [
              + "GET",
              + "HEAD",
            ]
          + compress               = true
          + default_ttl            = 3600
          + max_ttl                = 86400
          + min_ttl                = 0
          + path_pattern           = "/content/*"
          + target_origin_id       = "Application"
          + viewer_protocol_policy = "redirect-to-https"

          + forwarded_values {
              + headers                 = (known after apply)
              + query_string            = false
              + query_string_cache_keys = (known after apply)

              + cookies {
                  + forward = "none"
                }
            }
        }

      + origin {
          + connection_attempts = 3
          + connection_timeout  = 10
          + domain_name         = "cv.alexmav.co.uk.s3.eu-west-1.amazonaws.com"
          + origin_id           = "Application"

          + s3_origin_config {
              + origin_access_identity = "origin-access-identity/cloudfront/E3N5JSK2MAVPB4"
            }
        }

      + restrictions {
          + geo_restriction {
              + locations        = [
                  + "AF",
                  + "BA",
                  + "BI",
                  + "BY",
                  + "CD",
                  + "GN",
                  + "GW",
                  + "HT",
                  + "IR",
                  + "KP",
                  + "LB",
                  + "LY",
                  + "NI",
                  + "RU",
                  + "SD",
                  + "SO",
                  + "SS",
                  + "VE",
                  + "YE",
                ]
              + restriction_type = "blacklist"
            }
        }

      + viewer_certificate {
          + acm_certificate_arn            = "arn:aws:acm:us-east-1:582037776064:certificate/2ab006fe-f83c-4725-ab17-2577da1cd3d2"
          + cloudfront_default_certificate = false
          + minimum_protocol_version       = "TLSv1.2_2021"
          + ssl_support_method             = "sni-only"
        }
    }

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

Warning: Reference to undefined provider

  on modules.tf line 15, in module "cvalexmav_web":
  15:     aws.virginia = aws.virginia

There is no explicit declaration for local provider name "aws.virginia" in
module.cvalexmav_web, so Terraform is assuming you mean to pass a
configuration for "hashicorp/aws".

If you also control the child module, add a required_providers entry named
"aws.virginia" with the source address "hashicorp/aws".

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

Note: You didn't use the -out option to save this plan, so Terraform can't
guarantee to take exactly these actions if you run "terraform apply" now.

*Pushed by: @amavrogiannis, Action: `pull_request`*

@amavrogiannis amavrogiannis merged commit 9453248 into prod Mar 29, 2024
3 checks passed
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