Skip to content

Commit

Permalink
Added attribute pool_arn in datasource ec2_coip
Browse files Browse the repository at this point in the history
Added the attribute pool_arn in Data Source: aws_ec2_coip_pool to resolve hashicorp#16426
  • Loading branch information
sumitmenaria authored Jan 11, 2021
1 parent 3bd91cf commit a75593a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions aws/data_source_aws_ec2_coip_pool.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,12 @@ func dataSourceAwsEc2CoipPool() *schema.Resource {
Computed: true,
},

"pool_arn": {
Type: schema.TypeString,
Optional: true,
Computed: true,
},

"tags": tagsSchemaComputed(),

"filter": ec2CustomFiltersSchema(),
Expand Down Expand Up @@ -90,6 +96,7 @@ func dataSourceAwsEc2CoipPoolRead(d *schema.ResourceData, meta interface{}) erro
d.SetId(aws.StringValue(coip.PoolId))

d.Set("local_gateway_route_table_id", coip.LocalGatewayRouteTableId)
d.Set("pool_arn", coip.PoolArn)

if err := d.Set("pool_cidrs", aws.StringValueSlice(coip.PoolCidrs)); err != nil {
return fmt.Errorf("error setting pool_cidrs: %s", err)
Expand Down

0 comments on commit a75593a

Please sign in to comment.