Skip to content

Commit 2c69fff

Browse files
committed
r/aws_s3_access_point: Tag on create.
1 parent 629122d commit 2c69fff

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

internal/service/s3control/access_point.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,7 @@ func resourceAccessPointCreate(ctx context.Context, d *schema.ResourceData, meta
166166
AccountId: aws.String(accountID),
167167
Bucket: aws.String(d.Get(names.AttrBucket).(string)),
168168
Name: aws.String(name),
169+
Tags: getTagsIn(ctx),
169170
}
170171

171172
if v, ok := d.GetOk("bucket_account_id"); ok {
@@ -180,8 +181,6 @@ func resourceAccessPointCreate(ctx context.Context, d *schema.ResourceData, meta
180181
input.VpcConfiguration = expandVPCConfiguration(v.([]any)[0].(map[string]any))
181182
}
182183

183-
//input.Tags = getTagsIn(ctx)
184-
185184
output, err := conn.CreateAccessPoint(ctx, &input)
186185

187186
if err != nil {

0 commit comments

Comments
 (0)