Skip to content

Commit

Permalink
r/aws_db_snapshot_copy: update exported attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
johnsonaj committed May 14, 2022
1 parent 43dfa79 commit 06d995f
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
8 changes: 7 additions & 1 deletion internal/service/rds/snapshot_copy.go
Original file line number Diff line number Diff line change
Expand Up @@ -171,15 +171,21 @@ func resourceSnapshotCopyRead(ctx context.Context, d *schema.ResourceData, meta

arn := aws.StringValue(snapshot.DBSnapshotArn)

d.Set("allocated_storage", snapshot.AllocatedStorage)
d.Set("availability_zone", snapshot.AvailabilityZone)
d.Set("db_snapshot_arn", snapshot.DBSnapshotArn)
d.Set("encrypted", snapshot.Encrypted)
d.Set("engine", snapshot.Engine)
d.Set("engine_version", snapshot.EngineVersion)
d.Set("source_region", snapshot.SourceRegion)
d.Set("iops", snapshot.Iops)
d.Set("kms_key_id", snapshot.KmsKeyId)
d.Set("license_model", snapshot.LicenseModel)
d.Set("option_group_name", snapshot.OptionGroupName)
d.Set("source_db_snapshot_identifier", snapshot.SourceDBSnapshotIdentifier)
d.Set("source_region", snapshot.SourceRegion)
d.Set("storage_type", snapshot.StorageType)
d.Set("target_db_snapshot_identifier", snapshot.DBSnapshotIdentifier)
d.Set("vpc_id", snapshot.VpcId)

tags, err := ListTags(conn, arn)

Expand Down
7 changes: 7 additions & 0 deletions website/docs/r/rds_db_snapshot_copy.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,13 @@ resource "aws_rds_db_snapshot_copy" "example" {

The following arguments are supported:

* `copy_tags` - (Optional) Whether to copy existing tags. Defaults to `false`.
* `destination_region` - (Optional) The Destination region to place snapshot copy.
* `kms_key_id` - (Optional) KMS key ID.
* `option_group_name`- (Optional) The name of an option group to associate with the copy of the snapshot.
* `presigned_url` - (Optional) he URL that contains a Signature Version 4 signed request.
* `source_db_snapshot_identifier` - (Required) Snapshot identifier of the source snapshot.
* `target_custom_availability_zone` - (Optional) The external custom Availability Zone.
* `target_db_snapshot_identifier` - (Required) The Identifier for the snapshot.
* `tags` - (Optional) Key-value map of resource tags. If configured with a provider [`default_tags` configuration block](/docs/providers/aws/index.html#default_tags-configuration-block) present, tags with matching keys will overwrite those defined at the provider-level.

Expand All @@ -51,6 +57,7 @@ The following arguments are supported:

In addition to all arguments above, the following attributes are exported:

* `id` - Snapshot Identifier.
* `allocated_storage` - Specifies the allocated storage size in gigabytes (GB).
* `availability_zone` - Specifies the name of the Availability Zone the DB instance was located in at the time of the DB snapshot.
* `db_snapshot_arn` - The Amazon Resource Name (ARN) for the DB snapshot.
Expand Down

0 comments on commit 06d995f

Please sign in to comment.