Skip to content

Commit 58d36ae

Browse files
authored
Configure autonaming for aws.backup.RestoreTestingPlan (#5574)
The default auto naming resulted in errors such as: Attribute name must contain only alphanumeric characters, and underscores, got: test-31e72eb. With the configuraiton fix, autonatmic names use `_` instead of '-' and pass this resource check. Fixes #5570
1 parent 38337cb commit 58d36ae

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

provider/resources.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1373,6 +1373,12 @@ compatibility shim in favor of the new "name" field.`)
13731373
},
13741374
},
13751375
},
1376+
"aws_backup_restore_testing_plan": {
1377+
Tok: awsResource(backupMod, "RestoreTestingPlan"),
1378+
Fields: map[string]*tfbridge.SchemaInfo{
1379+
"name": tfbridge.AutoName("name", 255, "_"),
1380+
},
1381+
},
13761382
// Batch
13771383
"aws_batch_compute_environment": batch.ComputeEnvironment(awsResource(batchMod, "ComputeEnvironment"), tfbridge.GetLogger),
13781384
"aws_batch_job_definition": {Tok: awsResource(batchMod, "JobDefinition")},

0 commit comments

Comments
 (0)