when I excecute in the console "terraform plan || echo “S?” , I get this error code:
Error: reading EC2 Subnet: operation error EC2: DescribeSubnets, https response error StatusCode: 403, RequestID: 851ba89a-2d65-4ae2-8ed0-738223f923ab, api error UnauthorizedOperation: You are not authorized to perform this operation. User: arn:aws:sts::072737996417:assumed-role/voclabs/user4153884=udwpmjvragny is not authorized to perform: ec2:DescribeSubnets with an explicit deny in an identity-based policy
│
│ with module.etl.data.aws_subnet.public_a,
│ on modules/etl/network.tf line 1, in data “aws_subnet” “public_a”:
│ 1: data “aws_subnet” “public_a” {
│
╵
╷
│ Error: reading EC2 Security Group: operation error EC2: DescribeSecurityGroups, https response error StatusCode: 403, RequestID: 52766854-9cfe-408e-9fb9-1a89422c26f7, api error UnauthorizedOperation: You are not authorized to perform this operation. User: arn:aws:sts::072737996417:assumed-role/voclabs/user4153884=udwpmjvragny is not authorized to perform: ec2:DescribeSecurityGroups with an explicit deny in an identity-based policy
│
│ with module.etl.data.aws_security_group.db_sg,
│ on modules/etl/network.tf line 5, in data “aws_security_group” “db_sg”:
│ 5: data “aws_security_group” “db_sg” {
│
╵
When I continue with terraform apply i get this:
oder@16f3b2a64423:~/project/terraform$ terraform apply || echo “$?”
Changes to Outputs:
- data_lake_bucket_id = “de-c1w4-072737996417-us-east-1-datalake”
- scripts_bucket_id = “de-c1w4-072737996417-us-east-1-scripts”
You can apply this plan to save these new output values to the Terraform state,
without changing any real infrastructure.
╷
│ Error: Invalid provider configuration
│
│ Provider “Terraform Registry” requires explicit configuration.
│ Add a provider block to the root module and configure the provider’s required
│ arguments as described in the provider documentation.
│
╵
╷
│ Error: Retrieving AWS account details: validating provider credentials: retrieving caller identity from STS: operation error STS: GetCallerIdentity, https response error StatusCode: 403, RequestID: b4e91490-dee7-4b9f-a11f-8c70501ca2a5, api error InvalidClientTokenId: The security token included in the request is invalid.
│
│ with provider[“Terraform Registry”],
│ on line 0:
│ (source code not available)
│
╵
1