-
Couldn't load subscription status.
- Fork 23
Description
I am following the steps to execute the terraform apply on Stack1 folder: Again and again I am getting the following error:
I have already configure using aws configure
Warning: Deprecated attribute
│
│ on .terraform\modules\vpc\vpc-flow-logs.tf line 28, in locals:
│ 28: "arn:${data.aws_partition.current[0].partition}:logs:${data.aws_region.current[0].name}:${data.aws_caller_identity.current[0].account_id}:log-group:${log_group.name}:"
│
│ The attribute "name" is deprecated. Refer to the provider documentation for details.
╵
╷
│ Error: creating Secrets Manager Secret (my-aurora-serverless): operation error Secrets Manager: CreateSecret, https response error StatusCode: 400, RequestID: 619a9aed-e4b6-4a7f-bd47-e5acd7f15cc8, ResourceExistsException: The operation failed because the secret my-aurora-serverless already exists.
│
│ with module.aurora_serverless.aws_secretsmanager_secret.aurora_secret,
│ on ..\modules\database\main.tf line 70, in resource "aws_secretsmanager_secret" "aurora_secret":
│ 70: resource "aws_secretsmanager_secret" "aurora_secret" {
│
╵
╷
│ Error: creating S3 Bucket (bedrock-kb-904476011885): operation error S3: CreateBucket, https response error StatusCode: 409, RequestID: MYA1YQVHNPBE55BG,
HostID: 3z+e6vYKyMzCWxZIXSQKq6rlUhCu6zErWxirklJa3EGU2QrKJsNk+2gw1y/TXfqEUH3ODkiEA6E=, BucketAlreadyOwnedByYou:
│
│ with module.s3_bucket.aws_s3_bucket.this[0],
│ on .terraform\modules\s3_bucket\main.tf line 25, in resource "aws_s3_bucket" "this":
│ 25: resource "aws_s3_bucket" "this" {
│
╵
╷
│ Error: creating EC2 Subnet: operation error EC2: CreateSubnet, https response error StatusCode: 400, RequestID: 0f60be24-b711-4356-83ae-fbf5d20bd5af, api
error InvalidParameterValue: Value (us-west-1b) for parameter availabilityZone is invalid. Subnets can currently only be created in the following availability zones: us-west-1a, us-west-1c.
│
│ with module.vpc.aws_subnet.public[1],
│ on .terraform\modules\vpc\main.tf line 131, in resource "aws_subnet" "public":
│ 131: resource "aws_subnet" "public" {
│
╵
╷
│ Error: creating EC2 Subnet: operation error EC2: CreateSubnet, https response error StatusCode: 400, RequestID: 9cad07c0-39d5-40de-89eb-cd58b3b8cf2e, api
error InvalidParameterValue: Value (us-west-1b) for parameter availabilityZone is invalid. Subnets can currently only be created in the following availability zones: us-west-1a, us-west-1c.
│
│ with module.vpc.aws_subnet.private[1],
│ on .terraform\modules\vpc\main.tf line 267, in resource "aws_subnet" "private":
│ 267: resource "aws_subnet" "private" {
│
╵
╷
│ Error: creating EC2 Internet Gateway: operation error EC2: CreateInternetGateway, https response error StatusCode: 403, RequestID: e7760ffe-c104-47e8-bb0a-3349597d4873, api error UnauthorizedOperation: You are not authorized to perform this operation. User: arn:aws:sts::904476011885:assumed-role/voclabs/user4374784=735239447 is not authorized to perform: ec2:CreateInternetGateway on resource: arn:aws:ec2:us-west-1:904476011885:internet-gateway/ because no identity-based policy allows the ec2:CreateInternetGateway action. Encoded authorization failure message: Y94kLHhXtP-xqOGN6vq781QxLmSnRWUZysIQBV96JA-ZdosFBz0DEEPsxBQ-BNA09WcJR1A2AhUH8mmMMXvI53u6jt30qwSOPHAFTtPgN-wSTrwLZGaz5On-2ikyJ6YJQ2gFHQkqJTNyYnl-gS-gFUvwqflky_Kj_iWC1mx7uBJVM63Udib4FCN2AXkyZNAw8REF5L2snWnu388OdqAGvAHCgZgO3BOQv0JLQhQQBgoaJeHjGiW2gUl8a42wxGrrzPYqcSnLQuir3F9tH3y7F184kv8qGxa_iKY2Iaw3GbqUOc8l448Bon0t4PKJW3W5KeGwSLrZMnnKWoK8HrrHV-IDXDO14xbFtgzAL_orur5fuTpYV4XhlsFUsW3ahCtIQOdKC0FqSmy3JvZuH_QbCU4fctojEy6DJL_4BtNUV5mg-AXkfDM5kIGhreJn9rj1Hmi6rUVWYkvPsQ2I6er_LmAsWXmXizeyOtQwEQbXnGBrEXHWDPnJ3pSBek2d-iTvYfi8h7iTecjlarQ57Mu39AZUvIZZrf3CMp_e-Y25DOS_xa5Vr8pkAr3TRBrDWnUxbg
│
│ with module.vpc.aws_internet_gateway.this[0],
│ on .terraform\modules\vpc\main.tf line 1051, in resource "aws_internet_gateway" "this":
│ 1051: resource "aws_internet_gateway" "this" {
│
Please help in resolving this issue so that I will move forward to complete the assignment.