Move plan tests to AWS CodeBuild (#152)

* Add plan test on CodeBuild

* (to revert) remove changes filter

* (to revert) allow running on current branch

* (to revert) run assume role always

* Fix terraform state s3 keys for ci tests

* Add defaults for e2e

* Fix bucket name

* Debug clone version

* Pass build version

* Use actions env syntax

* fixup! Use actions env syntax

* fixup! fixup! Use actions env syntax

* fixup! fixup! fixup! Use actions env syntax

* Add input for amp monitoring

* Update e2e cluster name

* use credentials v2

* Cleanup

* Add build badge

* Revert triggers settings
This commit is contained in:
Rodrigue Koffi
2023-04-13 15:23:35 +02:00
committed by GitHub
parent eb5f294606
commit b513fe4e72
9 changed files with 52 additions and 24 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
variable "cluster_name" {
description = "Name of cluster - used by Terratest for e2e test automation"
type = string
default = ""
default = "eks-cluster-with-vpc"
validation {
# cluster name is used as prefix on eks_blueprint module and cannot be >25 characters
+1 -1
View File
@@ -26,7 +26,7 @@ terraform {
# ## Used for end-to-end testing on project; update to suit your needs
# backend "s3" {
# bucket = "observability-accelerator-terraform-states"
# bucket = "aws-observability-accelerator-terraform-states"
# region = "us-west-2"
# key = "e2e/eks-cluster-with-vpc/terraform.tfstate"
# }
+2 -2
View File
@@ -26,9 +26,9 @@ terraform {
# ## Used for end-to-end testing on project; update to suit your needs
# backend "s3" {
# bucket = "observability-accelerator-terraform-states"
# bucket = "aws-observability-accelerator-terraform-states"
# region = "us-west-2"
# key = "e2e/existing-cluster-with-base-and-infra/terraform.tfstate"
# key = "e2e/existing-cluster-java/terraform.tfstate"
# }
}
+2 -2
View File
@@ -26,9 +26,9 @@ terraform {
# ## Used for end-to-end testing on project; update to suit your needs
# backend "s3" {
# bucket = "observability-accelerator-terraform-states"
# bucket = "aws-observability-accelerator-terraform-states"
# region = "us-west-2"
# key = "e2e/existing-cluster-with-base-and-infra/terraform.tfstate"
# key = "e2e/existing-cluster-nginx/terraform.tfstate"
# }
}
@@ -26,7 +26,7 @@ terraform {
# ## Used for end-to-end testing on project; update to suit your needs
# backend "s3" {
# bucket = "observability-accelerator-terraform-states"
# bucket = "aws-observability-accelerator-terraform-states"
# region = "us-west-2"
# key = "e2e/existing-cluster-with-base-and-infra/terraform.tfstate"
# }
@@ -7,4 +7,11 @@ terraform {
version = ">= 4.0.0"
}
}
# ## Used for end-to-end testing on project; update to suit your needs
# backend "s3" {
# bucket = "aws-observability-accelerator-terraform-states"
# region = "us-west-2"
# key = "e2e/managed-grafana-workspace/terraform.tfstate"
# }
}
@@ -11,4 +11,11 @@ terraform {
version = ">= 1.25.0"
}
}
# ## Used for end-to-end testing on project; update to suit your needs
# backend "s3" {
# bucket = "aws-observability-accelerator-terraform-states"
# region = "us-west-2"
# key = "e2e/managed-prometheus-monitoring/terraform.tfstate"
# }
}