I am attempting to share a RDS DB snapshot in one AWS account with another, I am running into unsupported argument error on this line. Any thoughts on how to resolve this?
shared_accounts = [“123456789012”] # The destination AWS account ID
I am attempting to share a RDS DB snapshot in one AWS account with another, I am running into unsupported argument error on this line. Any thoughts on how to resolve this?
shared_accounts = [“123456789012”] # The destination AWS account ID
Hi,
Can you share with us what resource are you using?
Error: Unsupported argument
│
│ on database.tf line 106, in resource "aws_db_snapshot" "abcd_db_latest_prod_snapshot":
│ 106: shared_accounts = ["123456789012"]
│
│ An argument named "shared_accounts" is not expected here.
resource "aws_db_snapshot" "abcd_db_latest_prod_snapshot" {
db_instance_identifier = aws_db_instance.abcd-db.identifier
db_snapshot_identifier = "fdsafsd"
shared_accounts = ["123456789012"]
}
terraform version 1.5.1
terraform {
required_providers {
aws = {
source = "hashicorp/aws"
version = "3.76.1"
}
}
}
I got the problem…
the field shared_accounts
not yet created at version 3.76 of terraform aws provider.
If you update the provider to version 5.60+ this will work.
terraform {
required_providers {
aws = {
source = "hashicorp/aws"
version = "5.67.0"
}
}
}