Update Enos run (#2326)
* Rotate the credential used for the Enos SSH Key * Use the enos provider from TFC Signed-off-by: Jaymala Sinha <jaymala@hashicorp.com>
This commit is contained in:
1 parent
e1a6a60cce
commit
369f818f4c
7 files changed
+12
-25
No files matched your search
@@ -70,7 +70,7 @@ jobs:
|
||||
- name: Set up AWS SSH private key
|
||||
run: |
|
||||
mkdir -p ./enos/support
|
||||
echo "${{ secrets.ENOS_CI_SSH_KEYPAIR }}" > ./enos/support/private_key.pem
|
||||
echo "${{ secrets.ENOS_CI_SSH_KEY }}" > ./enos/support/private_key.pem
|
||||
chmod 600 ./enos/support/private_key.pem
|
||||
- name: Set up Bats CLI UI tests dependency cache
|
||||
if: matrix.test == 'cli_ui'
|
||||
@@ -129,7 +129,7 @@ jobs:
|
||||
continue-on-error: true
|
||||
env:
|
||||
ENOS_VAR_aws_region: us-east-1
|
||||
ENOS_VAR_aws_ssh_keypair_name: enos-ci-ssh-keypair
|
||||
ENOS_VAR_aws_ssh_keypair_name: enos-ci-ssh-key
|
||||
ENOS_VAR_aws_ssh_private_key_path: ./support/private_key.pem
|
||||
ENOS_VAR_local_boundary_dir: ./support/
|
||||
ENOS_VAR_crt_bundle_path: ./support/boundary.zip
|
||||
@@ -145,7 +145,7 @@ jobs:
|
||||
if: steps.run.outcome == 'failure'
|
||||
env:
|
||||
ENOS_VAR_aws_region: us-east-1
|
||||
ENOS_VAR_aws_ssh_keypair_name: enos-ci-ssh-keypair
|
||||
ENOS_VAR_aws_ssh_keypair_name: enos-ci-ssh-key
|
||||
ENOS_VAR_aws_ssh_private_key_path: ./support/private_key.pem
|
||||
ENOS_VAR_local_boundary_dir: ./support/
|
||||
ENOS_VAR_crt_bundle_path: ./support/boundary.zip
|
||||
@@ -159,7 +159,7 @@ jobs:
|
||||
if: ${{ always() }}
|
||||
env:
|
||||
ENOS_VAR_aws_region: us-east-1
|
||||
ENOS_VAR_aws_ssh_keypair_name: enos-ci-ssh-keypair
|
||||
ENOS_VAR_aws_ssh_keypair_name: enos-ci-ssh-key
|
||||
ENOS_VAR_aws_ssh_private_key_path: ./support/private_key.pem
|
||||
ENOS_VAR_local_boundary_dir: ./support/
|
||||
ENOS_VAR_crt_bundle_path: ./support/boundary.zip
|
||||
|
||||
+1
-14
@@ -1,18 +1,6 @@
|
||||
terraform_cli "default" {
|
||||
plugin_cache_dir = abspath("./terraform-plugin-cache")
|
||||
|
||||
provider_installation {
|
||||
network_mirror {
|
||||
url = "https://enos-provider-stable.s3.amazonaws.com/"
|
||||
include = ["hashicorp.com/qti/enos"]
|
||||
}
|
||||
direct {
|
||||
exclude = [
|
||||
"hashicorp.com/qti/enos"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
credentials "app.terraform.io" {
|
||||
token = var.tfc_api_token
|
||||
}
|
||||
@@ -23,8 +11,7 @@ terraform "default" {
|
||||
|
||||
required_providers {
|
||||
enos = {
|
||||
source = "hashicorp.com/qti/enos"
|
||||
version = ">= 0.2.1"
|
||||
source = "app.terraform.io/hashicorp-qti/enos"
|
||||
}
|
||||
|
||||
aws = {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
terraform {
|
||||
required_providers {
|
||||
enos = {
|
||||
source = "hashicorp.com/qti/enos"
|
||||
source = "app.terraform.io/hashicorp-qti/enos"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
terraform {
|
||||
required_providers {
|
||||
enos = {
|
||||
source = "hashicorp.com/qti/enos"
|
||||
source = "app.terraform.io/hashicorp-qti/enos"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
terraform {
|
||||
required_providers {
|
||||
enos = {
|
||||
source = "hashicorp.com/qti/enos"
|
||||
source = "app.terraform.io/hashicorp-qti/enos"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
terraform {
|
||||
required_providers {
|
||||
enos = {
|
||||
source = "hashicorp.com/qti/enos"
|
||||
source = "app.terraform.io/hashicorp-qti/enos"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -62,9 +62,9 @@ resource "enos_local_exec" "create_account" {
|
||||
environment = {
|
||||
BOUNDARY_ADDR = var.alb_boundary_api_addr,
|
||||
BOUNDARY_TOKEN = local.auth_token,
|
||||
BP = local.test_password
|
||||
BP = local.test_password
|
||||
}
|
||||
inline = ["${var.local_boundary_dir}/boundary accounts create password -auth-method-id ${var.auth_method_id} -login-name ${local.test_user} -name ${local.test_user} -password env://BP -description 'test user' -format json"]
|
||||
inline = ["${var.local_boundary_dir}/boundary accounts create password -auth-method-id ${var.auth_method_id} -login-name ${local.test_user} -name ${local.test_user} -password env://BP -description 'test user' -format json"]
|
||||
}
|
||||
|
||||
resource "enos_local_exec" "create_role" {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
terraform {
|
||||
required_providers {
|
||||
enos = {
|
||||
source = "hashicorp.com/qti/enos"
|
||||
source = "app.terraform.io/hashicorp-qti/enos"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user