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

atlantis: add error page #2

Closed
wants to merge 3 commits into from
Closed

atlantis: add error page #2

wants to merge 3 commits into from

Conversation

al-lac
Copy link
Owner

@al-lac al-lac commented Jun 23, 2023

Add an error page for the s3 website

@atlantis-for-tf-aws
Copy link

Ran Plan for dir: atlantis workspace: default

Show Output
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:

  # aws_s3_object.error will be created
+ resource "aws_s3_object" "error" {
      + acl                    = "public-read"
      + bucket                 = "tf-atlantis-alex-bucket"
      + bucket_key_enabled     = (known after apply)
      + content_type           = "text/html"
      + etag                   = (known after apply)
      + force_destroy          = false
      + id                     = (known after apply)
      + key                    = "error.html"
      + kms_key_id             = (known after apply)
      + server_side_encryption = (known after apply)
      + source                 = "./content/error.html"
      + storage_class          = (known after apply)
      + tags_all               = (known after apply)
      + version_id             = (known after apply)
    }

Plan: 1 to add, 0 to change, 0 to destroy.
  • ▶️ To apply this plan, comment:
    • atlantis apply -d atlantis
  • 🚮 To delete this plan click here
  • 🔁 To plan this project again, comment:
    • atlantis plan -d atlantis
Plan: 1 to add, 0 to change, 0 to destroy.
  • ⏩ To apply all unapplied plans from this pull request, comment:
    • atlantis apply
  • 🚮 To delete all plans and locks for the PR, comment:
    • atlantis unlock

@atlantis-for-tf-aws
Copy link

Ran Plan for dir: atlantis workspace: default

Show Output
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:

  # aws_s3_object.error will be created
+ resource "aws_s3_object" "error" {
      + acl                    = "public-read"
      + bucket                 = "tf-atlantis-alex-bucket"
      + bucket_key_enabled     = (known after apply)
      + content_type           = "text/html"
      + etag                   = (known after apply)
      + force_destroy          = false
      + id                     = (known after apply)
      + key                    = "error.html"
      + kms_key_id             = (known after apply)
      + server_side_encryption = (known after apply)
      + source                 = "./content/error.html"
      + storage_class          = (known after apply)
      + tags_all               = (known after apply)
      + version_id             = (known after apply)
    }

Plan: 1 to add, 0 to change, 0 to destroy.
  • ▶️ To apply this plan, comment:
    • atlantis apply -d atlantis
  • 🚮 To delete this plan click here
  • 🔁 To plan this project again, comment:
    • atlantis plan -d atlantis
Plan: 1 to add, 0 to change, 0 to destroy.
  • ⏩ To apply all unapplied plans from this pull request, comment:
    • atlantis apply
  • 🚮 To delete all plans and locks for the PR, comment:
    • atlantis unlock

@atlantis-for-tf-aws
Copy link

Ran Plan for dir: atlantis workspace: default

Show Output
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:

  # aws_s3_object.error will be created
+ resource "aws_s3_object" "error" {
      + acl                    = "public-read"
      + bucket                 = "tf-atlantis-alex-bucket"
      + bucket_key_enabled     = (known after apply)
      + content_type           = "text/html"
      + etag                   = (known after apply)
      + force_destroy          = false
      + id                     = (known after apply)
      + key                    = "error.html"
      + kms_key_id             = (known after apply)
      + server_side_encryption = (known after apply)
      + source                 = "./content/error.html"
      + storage_class          = (known after apply)
      + tags_all               = (known after apply)
      + version_id             = (known after apply)
    }

Plan: 1 to add, 0 to change, 0 to destroy.
  • ▶️ To apply this plan, comment:
    • atlantis apply -d atlantis
  • 🚮 To delete this plan click here
  • 🔁 To plan this project again, comment:
    • atlantis plan -d atlantis
Plan: 1 to add, 0 to change, 0 to destroy.
  • ⏩ To apply all unapplied plans from this pull request, comment:
    • atlantis apply
  • 🚮 To delete all plans and locks for the PR, comment:
    • atlantis unlock

@al-lac
Copy link
Owner Author

al-lac commented Jun 26, 2023

atlantis plan

@atlantis-for-tf-aws
Copy link

Ran Plan for dir: atlantis workspace: default

Plan Error

Show Output
running "/usr/local/bin/terraform init -input=false -upgrade" in "/home/atlantis/.atlantis/repos/al-lac/tf-aws/2/default/atlantis": exit status 1

Initializing the backend...
╷
│ Error: error configuring S3 Backend: no valid credential sources for S3 Backend found.
│ 
│ Please see https://www.terraform.io/docs/language/settings/backends/s3.html
│ for more information about providing credentials.
│ 
│ Error: NoCredentialProviders: no valid providers in chain. Deprecated.
│ 	For verbose messaging see aws.Config.CredentialsChainVerboseErrors
│ 
│ 
│ 
╵


@al-lac
Copy link
Owner Author

al-lac commented Jun 26, 2023

atlantis plan

@atlantis-for-tf-aws
Copy link

Ran Plan for dir: atlantis workspace: default

Plan Error

Show Output
running "/usr/local/bin/terraform init -input=false -upgrade" in "/home/atlantis/.atlantis/repos/al-lac/tf-aws/2/default/atlantis": exit status 1

Initializing the backend...
╷
│ Error: error configuring S3 Backend: no valid credential sources for S3 Backend found.
│ 
│ Please see https://www.terraform.io/docs/language/settings/backends/s3.html
│ for more information about providing credentials.
│ 
│ Error: NoCredentialProviders: no valid providers in chain. Deprecated.
│ 	For verbose messaging see aws.Config.CredentialsChainVerboseErrors
│ 
│ 
│ 
╵


@al-lac
Copy link
Owner Author

al-lac commented Jun 26, 2023

atlantis plan

@atlantis-for-tf-aws
Copy link

Ran Plan for dir: atlantis workspace: default

Plan Error

Show Output
running "/usr/local/bin/terraform init -input=false -upgrade" in "/home/atlantis/.atlantis/repos/al-lac/tf-aws/2/default/atlantis": exit status 1

Initializing the backend...
╷
│ Error: error configuring S3 Backend: no valid credential sources for S3 Backend found.
│ 
│ Please see https://www.terraform.io/docs/language/settings/backends/s3.html
│ for more information about providing credentials.
│ 
│ Error: NoCredentialProviders: no valid providers in chain. Deprecated.
│ 	For verbose messaging see aws.Config.CredentialsChainVerboseErrors
│ 
│ 
│ 
╵


@al-lac
Copy link
Owner Author

al-lac commented Jun 26, 2023

atlantis plan

@atlantis-for-tf-aws
Copy link

Ran Plan for dir: atlantis workspace: default

Show Output
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:

  # aws_s3_object.error will be created
+ resource "aws_s3_object" "error" {
      + acl                    = "public-read"
      + bucket                 = "tf-atlantis-alex-bucket"
      + bucket_key_enabled     = (known after apply)
      + content_type           = "text/html"
      + etag                   = (known after apply)
      + force_destroy          = false
      + id                     = (known after apply)
      + key                    = "error.html"
      + kms_key_id             = (known after apply)
      + server_side_encryption = (known after apply)
      + source                 = "./content/error.html"
      + storage_class          = (known after apply)
      + tags_all               = (known after apply)
      + version_id             = (known after apply)
    }

Plan: 1 to add, 0 to change, 0 to destroy.
  • ▶️ To apply this plan, comment:
    • atlantis apply -d atlantis
  • 🚮 To delete this plan click here
  • 🔁 To plan this project again, comment:
    • atlantis plan -d atlantis
Plan: 1 to add, 0 to change, 0 to destroy.
  • ⏩ To apply all unapplied plans from this pull request, comment:
    • atlantis apply
  • 🚮 To delete all plans and locks for the PR, comment:
    • atlantis unlock

@al-lac al-lac closed this Jun 26, 2023
@atlantis-for-tf-aws
Copy link

Locks and plans deleted for the projects and workspaces modified in this pull request:

  • dir: atlantis workspace: default

@al-lac al-lac deleted the error-page branch June 26, 2023 15:37
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