Merge pull request #4261 from stack72/aws-db_subnet_group-arn
provider/aws: DB Subnet group arn output
This commit is contained in:
commit
991d58c6d2
|
@ -23,6 +23,11 @@ func resourceAwsDbSubnetGroup() *schema.Resource {
|
|||
Delete: resourceAwsDbSubnetGroupDelete,
|
||||
|
||||
Schema: map[string]*schema.Schema{
|
||||
"arn": &schema.Schema{
|
||||
Type: schema.TypeString,
|
||||
Computed: true,
|
||||
},
|
||||
|
||||
"name": &schema.Schema{
|
||||
Type: schema.TypeString,
|
||||
ForceNew: true,
|
||||
|
@ -142,6 +147,7 @@ func resourceAwsDbSubnetGroupRead(d *schema.ResourceData, meta interface{}) erro
|
|||
if err != nil {
|
||||
log.Printf("[DEBUG] Error building ARN for DB Subnet Group, not setting Tags for group %s", *subnetGroup.DBSubnetGroupName)
|
||||
} else {
|
||||
d.Set("arn", arn)
|
||||
resp, err := conn.ListTagsForResource(&rds.ListTagsForResourceInput{
|
||||
ResourceName: aws.String(arn),
|
||||
})
|
||||
|
|
|
@ -37,4 +37,5 @@ The following arguments are supported:
|
|||
The following attributes are exported:
|
||||
|
||||
* `id` - The db subnet group name.
|
||||
* `arn` - The ARN of the db subnet group.
|
||||
|
||||
|
|
Loading…
Reference in New Issue