You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Message: `Bucket names must not start with the prefix 'sthree-' and the prefix 'sthree-configurator'. (name: "sthree-domain.com", regex: "^(sthree-|sthree-configurator)")`,
270
+
Message: `Bucket names must not start with the prefix 'sthree-', 'sthree-configurator', or 'amzn-s3-demo-'. (name: "sthree-domain.com", regex: "^(sthree-|sthree-configurator|amzn-s3-demo-)")`,
Message: `Bucket names must not start with the prefix 'sthree-', 'sthree-configurator', or 'amzn-s3-demo-'. (name: "amzn-s3-demo-bucket", regex: "^(sthree-|sthree-configurator|amzn-s3-demo-)")`,
328
+
Range: hcl.Range{
329
+
Filename: "resource.tf",
330
+
Start: hcl.Pos{Line: 3, Column: 12},
331
+
End: hcl.Pos{Line: 3, Column: 33},
332
+
},
333
+
},
334
+
},
335
+
},
336
+
{
337
+
Name: "invalid_suffix_mrap",
338
+
Content: `
339
+
resource "aws_s3_bucket" "invalid_suffix_mrap" {
340
+
bucket = "my-bucket.mrap"
341
+
}
342
+
`,
343
+
Expected: helper.Issues{
344
+
{
345
+
Rule: NewAwsS3BucketNameRule(),
346
+
Message: `Bucket names must not end with the suffix '.mrap'. (name: "my-bucket.mrap", regex: "\\.mrap$")`,
347
+
Range: hcl.Range{
348
+
Filename: "resource.tf",
349
+
Start: hcl.Pos{Line: 3, Column: 12},
350
+
End: hcl.Pos{Line: 3, Column: 28},
351
+
},
352
+
},
353
+
},
354
+
},
355
+
{
356
+
Name: "invalid_suffix_x_s3",
357
+
Content: `
358
+
resource "aws_s3_bucket" "invalid_suffix_x_s3" {
359
+
bucket = "my-bucket--x-s3"
360
+
}
361
+
`,
362
+
Expected: helper.Issues{
363
+
{
364
+
Rule: NewAwsS3BucketNameRule(),
365
+
Message: `Bucket names must not end with the suffix '--x-s3'. (name: "my-bucket--x-s3", regex: "--x-s3$")`,
0 commit comments