diff --git a/bitbucket-pipelines.yml b/bitbucket-pipelines.yml index 0a7a982..563d1b7 100644 --- a/bitbucket-pipelines.yml +++ b/bitbucket-pipelines.yml @@ -223,10 +223,9 @@ pipelines: oidc: true trigger : automatic # Keeping it manual so that it doesnt conflict with existing resources script: - - source backend.env - *aws-context-uat - cd devops-pipeline/other-resources/ - - terraform init -migrate-state -backend-config="access_key=$AWS_ACCESS_KEY_ID" -backend-config="secret_key=$AWS_SECRET_ACCESS_KEY" -backend-config="token=$AWS_SESSION_TOKEN" -backend-config="dynamodb_table=$DYNAMODB_TABLE_NAME" -backend-config="bucket=$S3_BUCKET_NAME" -backend-config="key=terraform/devops-pipeline-other-resources/terraform.tfstate" + - terraform init -migrate-state -backend-config="access_key=$AWS_ACCESS_KEY_ID" -backend-config="secret_key=$AWS_SECRET_ACCESS_KEY" -backend-config="token=$AWS_SESSION_TOKEN" -backend-config="dynamodb_table=doczyai-use2-u-infra-dyd-terraform-lock" -backend-config="bucket=doczyai-use2-u-infra-s3-terraform-state" -backend-config="key=terraform/devops-pipeline-other-resources/terraform.tfstate" - terraform validate - terraform apply --auto-approve -no-color -var "access_key=$AWS_ACCESS_KEY_ID" -var "secret_key=$AWS_SECRET_ACCESS_KEY" -var "token=$AWS_SESSION_TOKEN" -var "aws_region=us-east-2" -var "environment=uat" condition: @@ -238,7 +237,7 @@ pipelines: name: "Plan & Apply Streamlit Pipeline" image: hugree/bitbucket-aws-python38-tf154:latest oidc: true - trigger : manual + trigger : automatic script: - *aws-context-uat - cd streamlit-server/ diff --git a/devops-pipeline/other-resources/variables.tf b/devops-pipeline/other-resources/variables.tf index f236a75..19b455c 100644 --- a/devops-pipeline/other-resources/variables.tf +++ b/devops-pipeline/other-resources/variables.tf @@ -74,4 +74,3 @@ variable "mwaa_resources_s3_bucket" { } } - diff --git a/streamlit-server/variables.tf b/streamlit-server/variables.tf index 79f9735..61e5d15 100644 --- a/streamlit-server/variables.tf +++ b/streamlit-server/variables.tf @@ -71,4 +71,4 @@ variable "access_key" { # required variable "token" { type = string -} \ No newline at end of file +}