Skip to content

Commit

Permalink
Linter fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Sharon Nam authored and Sharon Nam committed Jul 2, 2024
1 parent e6b4baa commit d3e6000
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
8 changes: 4 additions & 4 deletions internal/service/cloudformation/stack_set_instance.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ func resourceStackSetInstance() *schema.Resource {
Optional: true,
ForceNew: true,
MinItems: 1,
ConflictsWith: []string{"account_id"},
ConflictsWith: []string{names.AttrAccountID},
Elem: &schema.Schema{
Type: schema.TypeString,
ValidateFunc: validation.StringMatch(regexache.MustCompile(`^(ou-[0-9a-z]{4,32}-[0-9a-z]{8,32}|r-[0-9a-z]{4,32})$`), ""),
Expand All @@ -92,13 +92,13 @@ func resourceStackSetInstance() *schema.Resource {
Optional: true,
ForceNew: true,
ValidateFunc: validation.StringInSlice(enum.Slice(awstypes.AccountFilterType.Values("")...), false),
ConflictsWith: []string{"account_id"},
ConflictsWith: []string{names.AttrAccountID},
},
"accounts": {
Type: schema.TypeSet,
Optional: true,
ForceNew: true,
ConflictsWith: []string{"account_id"},
ConflictsWith: []string{names.AttrAccountID},
MinItems: 1,
Elem: &schema.Schema{
Type: schema.TypeString,
Expand All @@ -109,7 +109,7 @@ func resourceStackSetInstance() *schema.Resource {
Type: schema.TypeString,
ForceNew: true,
Optional: true,
ConflictsWith: []string{"account_id"},
ConflictsWith: []string{names.AttrAccountID},
ValidateFunc: validation.StringMatch(regexp.MustCompile(`(s3://|http(s?)://).+`), ""),
},
},
Expand Down
4 changes: 2 additions & 2 deletions internal/service/cloudformation/stack_set_instance_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -817,8 +817,8 @@ resource "aws_cloudformation_stack_set_instance" "test" {
deployment_targets {
organizational_unit_ids = [data.aws_organizations_organization.test.roots[0].id]
account_filter_type = "INTERSECTION"
accounts = [data.aws_organizations_organization.test.non_master_accounts[0].id]
account_filter_type = "INTERSECTION"
accounts = [data.aws_organizations_organization.test.non_master_accounts[0].id]
}
stack_set_name = aws_cloudformation_stack_set.test.name
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ The `deployment_targets` configuration block supports the following arguments:
* `account_filter_type` - (Optional) Limit deployment targets to individual accounts or include additional accounts with provided OUs. Valid values: `INTERSECTION`, `DIFFERENCE`, `UNION`, `NONE`.
* `accounts` - (Optional) List of accounts to deploy stack set updates.
* `accounts_url` - (Optional) S3 URL of the file containing the list of accounts.

### `operation_preferences` Argument Reference

The `operation_preferences` configuration block supports the following arguments:
Expand Down

0 comments on commit d3e6000

Please sign in to comment.