18F / newrelic-terraform

New Relic Automation for TTS
https://docs.google.com/document/d/13Cf_3iMBBzmFPYyryKhRgNiC6upayeBvzEOn47Owh_c/edit
Other
0 stars 4 forks source link

Continuous delivery workflow in GH Actions #22

Closed adborden closed 3 years ago

adborden commented 3 years ago

https://github.com/18F/newrelic-terraform/issues/19 https://github.com/18F/newrelic-terraform/issues/16

This moves the terraform workflow to CI (instead of manually from our local development environments). The usual CI checks will apply to every push (validate, fmt, tfsec, tflint). For pull requests, the Terraform plan will be generated and posted to the PR. Reviewers should review the plan before approving. Once approved and merged, the plan will be applied to production.

github-actions[bot] commented 3 years ago

Terraform plan in newrelic/synthetics

Plan: 5 to add, 0 to change, 4 to destroy. ```hcl An execution plan has been generated and is shown below. Resource actions are indicated with the following symbols: + create - destroy Terraform will perform the following actions: # newrelic_synthetics_monitor.uptime["atf-eregs.18f.gov"] will be destroyed - resource "newrelic_synthetics_monitor" "uptime" { - bypass_head_request = false -> null - frequency = 10 -> null - id = "506cbe58-40a9-49f2-b896-5c09a44fcdb5" -> null - locations = [ - "AWS_US_EAST_1", - "AWS_US_WEST_1", - "AWS_US_WEST_2", ] -> null - name = "atf-eregs.18f.gov" -> null - sla_threshold = 10 -> null - status = "ENABLED" -> null - treat_redirect_as_failure = false -> null - type = "SIMPLE" -> null - uri = "https://atf-eregs.18f.gov" -> null - verify_ssl = true -> null } # newrelic_synthetics_monitor.uptime["crime-data-explorer.fr.cloud.gov"] will be destroyed - resource "newrelic_synthetics_monitor" "uptime" { - bypass_head_request = false -> null - frequency = 10 -> null - id = "a3306788-b9e4-46ee-ae63-7bff957e4691" -> null - locations = [ - "AWS_US_EAST_1", - "AWS_US_WEST_1", - "AWS_US_WEST_2", ] -> null - name = "crime-data-explorer.fr.cloud.gov" -> null - sla_threshold = 10 -> null - status = "ENABLED" -> null - treat_redirect_as_failure = false -> null - type = "SIMPLE" -> null - uri = "https://crime-data-explorer.fr.cloud.gov" -> null - verify_ssl = true -> null } # newrelic_synthetics_monitor.uptime["design.login.gov"] will be created + resource "newrelic_synthetics_monitor" "uptime" { + frequency = 10 + id = (known after apply) + locations = [ + "AWS_US_EAST_1", + "AWS_US_WEST_1", + "AWS_US_WEST_2", ] + name = "design.login.gov" + sla_threshold = 10 + status = "ENABLED" + treat_redirect_as_failure = false + type = "SIMPLE" + uri = "https://design.login.gov" + verify_ssl = true } # newrelic_synthetics_monitor.uptime["developers.code.gov"] will be destroyed - resource "newrelic_synthetics_monitor" "uptime" { - bypass_head_request = false -> null - frequency = 10 -> null - id = "585a3e23-d01f-42f3-84e2-d00e1c6ffdd7" -> null - locations = [ - "AWS_US_EAST_1", - "AWS_US_WEST_1", - "AWS_US_WEST_2", ] -> null - name = "developers.code.gov" -> null - sla_threshold = 10 -> null - status = "ENABLED" -> null - treat_redirect_as_failure = false -> null - type = "SIMPLE" -> null - uri = "https://developers.code.gov" -> null - verify_ssl = true -> null } # newrelic_synthetics_monitor.uptime["partners.login.gov"] will be created + resource "newrelic_synthetics_monitor" "uptime" { + frequency = 10 + id = (known after apply) + locations = [ + "AWS_US_EAST_1", + "AWS_US_WEST_1", + "AWS_US_WEST_2", ] + name = "partners.login.gov" + sla_threshold = 10 + status = "ENABLED" + treat_redirect_as_failure = false + type = "SIMPLE" + uri = "https://partners.login.gov" + verify_ssl = true } # newrelic_synthetics_monitor.uptime["portfolios.18f.gov"] will be created + resource "newrelic_synthetics_monitor" "uptime" { + frequency = 10 + id = (known after apply) + locations = [ + "AWS_US_EAST_1", + "AWS_US_WEST_1", + "AWS_US_WEST_2", ] + name = "portfolios.18f.gov" + sla_threshold = 10 + status = "ENABLED" + treat_redirect_as_failure = false + type = "SIMPLE" + uri = "https://portfolios.18f.gov" + verify_ssl = true } # newrelic_synthetics_monitor.uptime["sam-landing.login.gov"] will be created + resource "newrelic_synthetics_monitor" "uptime" { + frequency = 10 + id = (known after apply) + locations = [ + "AWS_US_EAST_1", + "AWS_US_WEST_1", + "AWS_US_WEST_2", ] + name = "sam-landing.login.gov" + sla_threshold = 10 + status = "ENABLED" + treat_redirect_as_failure = false + type = "SIMPLE" + uri = "https://sam-landing.login.gov" + verify_ssl = true } # newrelic_synthetics_monitor.uptime["site-scanning.app.cloud.gov"] will be destroyed - resource "newrelic_synthetics_monitor" "uptime" { - bypass_head_request = false -> null - frequency = 10 -> null - id = "f55bff1a-ffcc-4c30-8cb8-e573625b5def" -> null - locations = [ - "AWS_US_EAST_1", - "AWS_US_WEST_1", - "AWS_US_WEST_2", ] -> null - name = "site-scanning.app.cloud.gov" -> null - sla_threshold = 10 -> null - status = "ENABLED" -> null - treat_redirect_as_failure = false -> null - type = "SIMPLE" -> null - uri = "https://site-scanning.app.cloud.gov" -> null - verify_ssl = true -> null } # newrelic_synthetics_monitor.uptime["ux-guide.18f.gov"] will be created + resource "newrelic_synthetics_monitor" "uptime" { + frequency = 10 + id = (known after apply) + locations = [ + "AWS_US_EAST_1", + "AWS_US_WEST_1", + "AWS_US_WEST_2", ] + name = "ux-guide.18f.gov" + sla_threshold = 10 + status = "ENABLED" + treat_redirect_as_failure = false + type = "SIMPLE" + uri = "https://ux-guide.18f.gov" + verify_ssl = true } Plan: 5 to add, 0 to change, 4 to destroy. ```

Plan applied in apply #1