AWS Bedrock gaurdrails is not created in the region and account mentioned in the provider.tf
Jeevitha1993 opened this issue · comments
Terraform Version
1.4.6
Terraform Configuration Files
...terraform config...
terraform {
required_version = ">= 1.4.6"
required_providers {
aws = {
version = ">= 5.0"
source = "hashicorp/aws"
}
}
}
provider "aws" {
region = "us-west-2"
assume_role {
role_arn = "arn:aws:iam::12345:role/gehc-devopsbot"
session_name = "var.GITLAB_USER_LOGIN"
external_id = "var.AWS_EXTERNAL_ID"
}
}
In the gitlab.yml
TF_VERSION: "1.4.6" #Terrffrom version
Debug Output
module.gaurdrails.awscc_bedrock_guardrail.example: Creation complete after 6s [id=arn:aws:bedrock:us-east-1:{account_id}:guardrail/nsq7n7nkwpk8]
The specified account_id is 12345(dev account) but created in 67890 (known to be our devops account).
Expected Behavior
AWS bedrock gaurdrails to be created in the account 12345 which is specified in the provider.tf as well as gitlab.yml file
Actual Behavior
AWS bedrock gaurdrails created in 67890 (known to be our devops account).
Steps to Reproduce
terraform init
terraform apply
Additional Context
No response
References
No response
Add awcc provider along with aws provider