-
Notifications
You must be signed in to change notification settings - Fork 9.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Advanced Backup Setting Arguments backup_options is not optional #17667
Comments
@lassebenni Thanks for raising this issue. $ make testacc TEST=./aws/ TESTARGS='-run=TestAccAwsBackupPlan_AdvancedBackupSetting'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws -v -count 1 -parallel 20 -run=TestAccAwsBackupPlan_AdvancedBackupSetting -timeout 120m
=== RUN TestAccAwsBackupPlan_AdvancedBackupSetting
=== PAUSE TestAccAwsBackupPlan_AdvancedBackupSetting
=== CONT TestAccAwsBackupPlan_AdvancedBackupSetting
resource_aws_backup_plan_test.go:533: Step 1/3 error: Error running apply: exit status 1
2021/02/18 17:48:26 [DEBUG] Using modified User-Agent: Terraform/0.12.26 HashiCorp-terraform-exec/0.13.0
Error: error creating Backup Plan: MissingParameterValueException: Resource Type or Backup Options is null in Advanced Backup Settings
{
RespMetadata: {
StatusCode: 400,
RequestID: "aab23569-3c28-4c67-933b-8a02b320b349"
},
Code_: "ERROR_4214",
Message_: "Resource Type or Backup Options is null in Advanced Backup Settings"
}
--- FAIL: TestAccAwsBackupPlan_AdvancedBackupSetting (8.17s)
FAIL
FAIL github.com/terraform-providers/terraform-provider-aws/aws 8.264s
FAIL
GNUmakefile:27: recipe for target 'testacc' failed
make: *** [testacc] Error 1 I'll fix the resource so that |
This has been released in version 3.30.0 of the Terraform AWS provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template for triage. Thanks! |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks! |
Terraform CLI and Terraform AWS Provider Version
Terraform v0.14.7
Affected Resource(s)
aws_backup_plan
Terraform Configuration Files
Debug Output
Expected Behavior
Creation of aws_backup_plan resource without stating the
backup_options
argument.Actual Behavior
tf plan
produces the error that states that thebackup_options
argument insideadvanced_backup_setting
is required, which is unlike what is stated in the documentation:https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/backup_plan#advanced-backup-setting-arguments
But in the latest docs of CloudFormation it states that the
BackupOptions
argument IS required: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-backup-backupplan-advancedbackupsettingresourcetype.htmlSteps to Reproduce
terraform apply
The text was updated successfully, but these errors were encountered: