Skip to content

Commit

Permalink
Merge pull request #31058 from hashicorp/f-remove-maciev1
Browse files Browse the repository at this point in the history
Macie Classic retirement: Remove resources
  • Loading branch information
ewbankkit authored Apr 28, 2023
2 parents bb93dbb + 0d450d1 commit 9d9b0a6
Show file tree
Hide file tree
Showing 17 changed files with 66 additions and 1,023 deletions.
7 changes: 7 additions & 0 deletions .changelog/31058.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
```release-note:breaking-change
provider: With the retirement of Macie Classic the `aws_macie_member_account_association` resource has been removed
```

```release-note:breaking-change
provider: With the retirement of Macie Classic the `aws_macie_s3_bucket_association` resource has been removed
```
15 changes: 0 additions & 15 deletions .ci/.semgrep-service-name0.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3405,18 +3405,3 @@ rules:
- pattern-regex: "(?i)ConfigService"
- pattern-not-regex: ^TestAcc.*
severity: WARNING
- id: configservice-in-test-name
languages:
- go
message: Include "ConfigService" in test name
paths:
include:
- internal/service/configservice/*_test.go
patterns:
- pattern: func $NAME( ... ) { ... }
- metavariable-pattern:
metavariable: $NAME
patterns:
- pattern-not-regex: "^TestAccConfigService"
- pattern-regex: ^TestAcc.*
severity: WARNING
29 changes: 15 additions & 14 deletions .ci/.semgrep-service-name1.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,20 @@
# Generated by internal/generate/servicesemgrep/main.go; DO NOT EDIT.
rules:
- id: configservice-in-test-name
languages:
- go
message: Include "ConfigService" in test name
paths:
include:
- internal/service/configservice/*_test.go
patterns:
- pattern: func $NAME( ... ) { ... }
- metavariable-pattern:
metavariable: $NAME
patterns:
- pattern-not-regex: "^TestAccConfigService"
- pattern-regex: ^TestAcc.*
severity: WARNING
- id: configservice-in-const-name
languages:
- go
Expand Down Expand Up @@ -3379,17 +3394,3 @@ rules:
- pattern-regex: "(?i)inspectorv2"
- pattern-not-regex: ^TestAcc.*
severity: WARNING
- id: inspectorv2-in-const-name
languages:
- go
message: Do not use "inspectorv2" in const name inside inspector2 package
paths:
include:
- internal/service/inspector2
patterns:
- pattern: const $NAME = ...
- metavariable-pattern:
metavariable: $NAME
patterns:
- pattern-regex: "(?i)inspectorv2"
severity: WARNING
101 changes: 43 additions & 58 deletions .ci/.semgrep-service-name2.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,19 @@
# Generated by internal/generate/servicesemgrep/main.go; DO NOT EDIT.
rules:
- id: inspectorv2-in-const-name
languages:
- go
message: Do not use "inspectorv2" in const name inside inspector2 package
paths:
include:
- internal/service/inspector2
patterns:
- pattern: const $NAME = ...
- metavariable-pattern:
metavariable: $NAME
patterns:
- pattern-regex: "(?i)inspectorv2"
severity: WARNING
- id: inspectorv2-in-var-name
languages:
- go
Expand Down Expand Up @@ -1477,64 +1491,6 @@ rules:
patterns:
- pattern-regex: "(?i)Logs"
severity: WARNING
- id: macie-in-func-name
languages:
- go
message: Do not use "Macie" in func name inside macie package
paths:
include:
- internal/service/macie
patterns:
- pattern: func $NAME( ... ) { ... }
- metavariable-pattern:
metavariable: $NAME
patterns:
- pattern-regex: "(?i)Macie"
- pattern-not-regex: ^TestAcc.*
severity: WARNING
- id: macie-in-test-name
languages:
- go
message: Include "Macie" in test name
paths:
include:
- internal/service/macie/*_test.go
patterns:
- pattern: func $NAME( ... ) { ... }
- metavariable-pattern:
metavariable: $NAME
patterns:
- pattern-not-regex: "^TestAccMacie"
- pattern-regex: ^TestAcc.*
severity: WARNING
- id: macie-in-const-name
languages:
- go
message: Do not use "Macie" in const name inside macie package
paths:
include:
- internal/service/macie
patterns:
- pattern: const $NAME = ...
- metavariable-pattern:
metavariable: $NAME
patterns:
- pattern-regex: "(?i)Macie"
severity: WARNING
- id: macie-in-var-name
languages:
- go
message: Do not use "Macie" in var name inside macie package
paths:
include:
- internal/service/macie
patterns:
- pattern: var $NAME = ...
- metavariable-pattern:
metavariable: $NAME
patterns:
- pattern-regex: "(?i)Macie"
severity: WARNING
- id: macie2-in-func-name
languages:
- go
Expand Down Expand Up @@ -3407,3 +3363,32 @@ rules:
patterns:
- pattern-regex: "(?i)Redshift"
severity: WARNING
- id: redshift-in-var-name
languages:
- go
message: Do not use "Redshift" in var name inside redshift package
paths:
include:
- internal/service/redshift
patterns:
- pattern: var $NAME = ...
- metavariable-pattern:
metavariable: $NAME
patterns:
- pattern-regex: "(?i)Redshift"
severity: WARNING
- id: redshiftdata-in-func-name
languages:
- go
message: Do not use "RedshiftData" in func name inside redshiftdata package
paths:
include:
- internal/service/redshiftdata
patterns:
- pattern: func $NAME( ... ) { ... }
- metavariable-pattern:
metavariable: $NAME
patterns:
- pattern-regex: "(?i)RedshiftData"
- pattern-not-regex: ^TestAcc.*
severity: WARNING
29 changes: 0 additions & 29 deletions .ci/.semgrep-service-name3.yml
Original file line number Diff line number Diff line change
@@ -1,34 +1,5 @@
# Generated by internal/generate/servicesemgrep/main.go; DO NOT EDIT.
rules:
- id: redshift-in-var-name
languages:
- go
message: Do not use "Redshift" in var name inside redshift package
paths:
include:
- internal/service/redshift
patterns:
- pattern: var $NAME = ...
- metavariable-pattern:
metavariable: $NAME
patterns:
- pattern-regex: "(?i)Redshift"
severity: WARNING
- id: redshiftdata-in-func-name
languages:
- go
message: Do not use "RedshiftData" in func name inside redshiftdata package
paths:
include:
- internal/service/redshiftdata
patterns:
- pattern: func $NAME( ... ) { ... }
- metavariable-pattern:
metavariable: $NAME
patterns:
- pattern-regex: "(?i)RedshiftData"
- pattern-not-regex: ^TestAcc.*
severity: WARNING
- id: redshiftdata-in-test-name
languages:
- go
Expand Down
1 change: 0 additions & 1 deletion .teamcity/components/generated/services_all.kt
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,6 @@ val services = mapOf(
"lightsail" to ServiceSpec("Lightsail", regionOverride = "us-east-1"),
"location" to ServiceSpec("Location"),
"logs" to ServiceSpec("CloudWatch Logs"),
"macie" to ServiceSpec("Macie Classic"),
"macie2" to ServiceSpec("Macie"),
"mediaconnect" to ServiceSpec("Elemental MediaConnect"),
"mediaconvert" to ServiceSpec("Elemental MediaConvert"),
Expand Down
2 changes: 0 additions & 2 deletions internal/provider/service_packages_gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 0 additions & 10 deletions internal/service/macie/README.md

This file was deleted.

48 changes: 0 additions & 48 deletions internal/service/macie/flex.go

This file was deleted.

Loading

0 comments on commit 9d9b0a6

Please sign in to comment.