Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

F codecatalyst devenv #32366

Merged
merged 30 commits into from
Aug 4, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
4d258e7
Creating DevEnv
markoskandylis Jul 3, 2023
02e1381
Adding CRUDS
markoskandylis Jul 4, 2023
a56bee5
Adding CRUDS for CodeCatalyst
markoskandylis Jul 4, 2023
61ab5d7
Starting to Write the tests
markoskandylis Jul 4, 2023
3871907
Passed the basic test
markoskandylis Jul 5, 2023
bd55045
changed the name of the space
markoskandylis Jul 5, 2023
942e865
fixed initial issues and tests
markoskandylis Jul 6, 2023
591e8ce
Fixed docs and tests issues
markoskandylis Jul 6, 2023
b9f034a
created new space and project
markoskandylis Jul 6, 2023
14162af
fixed headers issue
markoskandylis Jul 6, 2023
bce898d
fixed the lint
markoskandylis Jul 6, 2023
555e05a
Merge branch 'main' into f-codecatalyst-devenv
markoskandylis Jul 11, 2023
b67a19d
Merge branch 'hashicorp:main' into f-codecatalyst-devenv
markoskandylis Jul 11, 2023
bae0e05
fixing merge issues
markoskandylis Jul 11, 2023
c961e35
run go mod tidy
markoskandylis Jul 11, 2023
5db191e
Update devenvironment_test.go
markoskandylis Jul 26, 2023
962aca0
Update GNUmakefile
markoskandylis Jul 26, 2023
e079652
fixed mege conflicts
markoskandylis Jul 27, 2023
3432264
fixed website multiple blanks error
markoskandylis Jul 27, 2023
0890daa
Fixed errors
markoskandylis Jul 27, 2023
80d0d13
Fixing extra line on cdf docs
markoskandylis Jul 27, 2023
fa83597
Removed the extra line
markoskandylis Jul 27, 2023
3f9fa7e
Fixed last extra line change
markoskandylis Jul 27, 2023
bf4e24c
Merge branch 'main' into f-codecatalyst-devenv
markoskandylis Jul 27, 2023
6b11273
Fixed the docs
markoskandylis Jul 27, 2023
5deaa3d
changing the name from devevn to dev_environment
markoskandylis Jul 27, 2023
8e332f6
all tests passed
markoskandylis Jul 27, 2023
17f1364
Merge branch 'main' into HEAD
ewbankkit Aug 4, 2023
a34f1ed
Correct CHANGELOG entry.
ewbankkit Aug 4, 2023
b19a6fe
codecatalyst: Handle missing Amazon CodeCatalyst token in acceptance …
ewbankkit Aug 4, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .changelog/32366.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:new-resource
aws_codecatalyst_dev_environment
```
102 changes: 58 additions & 44 deletions .ci/.semgrep-service-name0.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2782,6 +2782,64 @@ rules:
patterns:
- pattern-regex: "(?i)CodeBuild"
severity: WARNING
- id: codecatalyst-in-func-name
languages:
- go
message: Do not use "CodeCatalyst" in func name inside codecatalyst package
paths:
include:
- internal/service/codecatalyst
patterns:
- pattern: func $NAME( ... ) { ... }
- metavariable-pattern:
metavariable: $NAME
patterns:
- pattern-regex: "(?i)CodeCatalyst"
- pattern-not-regex: ^TestAcc.*
severity: WARNING
- id: codecatalyst-in-test-name
languages:
- go
message: Include "CodeCatalyst" in test name
paths:
include:
- internal/service/codecatalyst/*_test.go
patterns:
- pattern: func $NAME( ... ) { ... }
- metavariable-pattern:
metavariable: $NAME
patterns:
- pattern-not-regex: "^TestAccCodeCatalyst"
- pattern-regex: ^TestAcc.*
severity: WARNING
- id: codecatalyst-in-const-name
languages:
- go
message: Do not use "CodeCatalyst" in const name inside codecatalyst package
paths:
include:
- internal/service/codecatalyst
patterns:
- pattern: const $NAME = ...
- metavariable-pattern:
metavariable: $NAME
patterns:
- pattern-regex: "(?i)CodeCatalyst"
severity: WARNING
- id: codecatalyst-in-var-name
languages:
- go
message: Do not use "CodeCatalyst" in var name inside codecatalyst package
paths:
include:
- internal/service/codecatalyst
patterns:
- pattern: var $NAME = ...
- metavariable-pattern:
metavariable: $NAME
patterns:
- pattern-regex: "(?i)CodeCatalyst"
severity: WARNING
- id: codecommit-in-func-name
languages:
- go
Expand Down Expand Up @@ -3390,47 +3448,3 @@ rules:
patterns:
- pattern-regex: "(?i)ComputeOptimizer"
severity: WARNING
- id: configservice-in-func-name
languages:
- go
message: Do not use "ConfigService" in func name inside configservice package
paths:
include:
- internal/service/configservice
patterns:
- pattern: func $NAME( ... ) { ... }
- metavariable-pattern:
metavariable: $NAME
patterns:
- 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
- id: configservice-in-const-name
languages:
- go
message: Do not use "ConfigService" in const name inside configservice package
paths:
include:
- internal/service/configservice
patterns:
- pattern: const $NAME = ...
- metavariable-pattern:
metavariable: $NAME
patterns:
- pattern-regex: "(?i)ConfigService"
severity: WARNING
87 changes: 44 additions & 43 deletions .ci/.semgrep-service-name1.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,49 @@
# Generated by internal/generate/servicesemgrep/main.go; DO NOT EDIT.
rules:
- id: configservice-in-func-name
languages:
- go
message: Do not use "ConfigService" in func name inside configservice package
paths:
include:
- internal/service/configservice
patterns:
- pattern: func $NAME( ... ) { ... }
- metavariable-pattern:
metavariable: $NAME
patterns:
- 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
- id: configservice-in-const-name
languages:
- go
message: Do not use "ConfigService" in const name inside configservice package
paths:
include:
- internal/service/configservice
patterns:
- pattern: const $NAME = ...
- metavariable-pattern:
metavariable: $NAME
patterns:
- pattern-regex: "(?i)ConfigService"
severity: WARNING
- id: configservice-in-var-name
languages:
- go
Expand Down Expand Up @@ -3380,46 +3424,3 @@ rules:
- pattern-not-regex: "^TestAccInspector2"
- pattern-regex: ^TestAcc.*
severity: WARNING
- id: inspector2-in-const-name
languages:
- go
message: Do not use "Inspector2" in const name inside inspector2 package
paths:
include:
- internal/service/inspector2
patterns:
- pattern: const $NAME = ...
- metavariable-pattern:
metavariable: $NAME
patterns:
- pattern-regex: "(?i)Inspector2"
severity: WARNING
- id: inspector2-in-var-name
languages:
- go
message: Do not use "Inspector2" in var name inside inspector2 package
paths:
include:
- internal/service/inspector2
patterns:
- pattern: var $NAME = ...
- metavariable-pattern:
metavariable: $NAME
patterns:
- pattern-regex: "(?i)Inspector2"
severity: WARNING
- id: inspectorv2-in-func-name
languages:
- go
message: Do not use "inspectorv2" in func name inside inspector2 package
paths:
include:
- internal/service/inspector2
patterns:
- pattern: func $NAME( ... ) { ... }
- metavariable-pattern:
metavariable: $NAME
patterns:
- pattern-regex: "(?i)inspectorv2"
- pattern-not-regex: ^TestAcc.*
severity: WARNING
72 changes: 43 additions & 29 deletions .ci/.semgrep-service-name2.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,48 @@
# Generated by internal/generate/servicesemgrep/main.go; DO NOT EDIT.
rules:
- id: inspector2-in-const-name
languages:
- go
message: Do not use "Inspector2" in const name inside inspector2 package
paths:
include:
- internal/service/inspector2
patterns:
- pattern: const $NAME = ...
- metavariable-pattern:
metavariable: $NAME
patterns:
- pattern-regex: "(?i)Inspector2"
severity: WARNING
- id: inspector2-in-var-name
languages:
- go
message: Do not use "Inspector2" in var name inside inspector2 package
paths:
include:
- internal/service/inspector2
patterns:
- pattern: var $NAME = ...
- metavariable-pattern:
metavariable: $NAME
patterns:
- pattern-regex: "(?i)Inspector2"
severity: WARNING
- id: inspectorv2-in-func-name
languages:
- go
message: Do not use "inspectorv2" in func name inside inspector2 package
paths:
include:
- internal/service/inspector2
patterns:
- pattern: func $NAME( ... ) { ... }
- metavariable-pattern:
metavariable: $NAME
patterns:
- pattern-regex: "(?i)inspectorv2"
- pattern-not-regex: ^TestAcc.*
severity: WARNING
- id: inspectorv2-in-const-name
languages:
- go
Expand Down Expand Up @@ -3392,32 +3435,3 @@ rules:
- pattern-regex: "(?i)RedshiftData"
- pattern-not-regex: ^TestAcc.*
severity: WARNING
- id: redshiftdata-in-test-name
languages:
- go
message: Include "RedshiftData" in test name
paths:
include:
- internal/service/redshiftdata/*_test.go
patterns:
- pattern: func $NAME( ... ) { ... }
- metavariable-pattern:
metavariable: $NAME
patterns:
- pattern-not-regex: "^TestAccRedshiftData"
- pattern-regex: ^TestAcc.*
severity: WARNING
- id: redshiftdata-in-const-name
languages:
- go
message: Do not use "RedshiftData" in const name inside redshiftdata package
paths:
include:
- internal/service/redshiftdata
patterns:
- pattern: const $NAME = ...
- metavariable-pattern:
metavariable: $NAME
patterns:
- pattern-regex: "(?i)RedshiftData"
severity: WARNING
29 changes: 29 additions & 0 deletions .ci/.semgrep-service-name3.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,34 @@
# Generated by internal/generate/servicesemgrep/main.go; DO NOT EDIT.
rules:
- id: redshiftdata-in-test-name
languages:
- go
message: Include "RedshiftData" in test name
paths:
include:
- internal/service/redshiftdata/*_test.go
patterns:
- pattern: func $NAME( ... ) { ... }
- metavariable-pattern:
metavariable: $NAME
patterns:
- pattern-not-regex: "^TestAccRedshiftData"
- pattern-regex: ^TestAcc.*
severity: WARNING
- id: redshiftdata-in-const-name
languages:
- go
message: Do not use "RedshiftData" in const name inside redshiftdata package
paths:
include:
- internal/service/redshiftdata
patterns:
- pattern: const $NAME = ...
- metavariable-pattern:
metavariable: $NAME
patterns:
- pattern-regex: "(?i)RedshiftData"
severity: WARNING
- id: redshiftdata-in-var-name
languages:
- go
Expand Down
2 changes: 2 additions & 0 deletions .github/labeler-issue-triage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,8 @@ service/codeartifact:
- '((\*|-)\s*`?|(data|resource)\s+"?)aws_codeartifact_'
service/codebuild:
- '((\*|-)\s*`?|(data|resource)\s+"?)aws_codebuild_'
service/codecatalyst:
- '((\*|-)\s*`?|(data|resource)\s+"?)aws_codecatalyst_'
service/codecommit:
- '((\*|-)\s*`?|(data|resource)\s+"?)aws_codecommit_'
service/codeguruprofiler:
Expand Down
3 changes: 3 additions & 0 deletions .github/labeler-pr-triage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,9 @@ service/codeartifact:
service/codebuild:
- 'internal/service/codebuild/**/*'
- 'website/**/codebuild_*'
service/codecatalyst:
- 'internal/service/codecatalyst/**/*'
- 'website/**/codecatalyst_*'
service/codecommit:
- 'internal/service/codecommit/**/*'
- 'website/**/codecommit_*'
Expand Down
1 change: 1 addition & 0 deletions .teamcity/components/generated/services_all.kt
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ val services = mapOf(
"cloudwatch" to ServiceSpec("CloudWatch"),
"codeartifact" to ServiceSpec("CodeArtifact"),
"codebuild" to ServiceSpec("CodeBuild"),
"codecatalyst" to ServiceSpec("CodeCatalyst"),
"codecommit" to ServiceSpec("CodeCommit"),
"codegurureviewer" to ServiceSpec("CodeGuru Reviewer"),
"codepipeline" to ServiceSpec("CodePipeline"),
Expand Down
1 change: 1 addition & 0 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ require (
github.com/aws/aws-sdk-go-v2/service/cleanrooms v1.3.0
github.com/aws/aws-sdk-go-v2/service/cloudcontrol v1.12.0
github.com/aws/aws-sdk-go-v2/service/cloudwatchlogs v1.23.0
github.com/aws/aws-sdk-go-v2/service/codecatalyst v1.3.2
github.com/aws/aws-sdk-go-v2/service/comprehend v1.25.0
github.com/aws/aws-sdk-go-v2/service/computeoptimizer v1.25.0
github.com/aws/aws-sdk-go-v2/service/directoryservice v1.18.0
Expand Down
5 changes: 5 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ github.com/armon/go-radix v0.0.0-20180808171621-7fddfc383310 h1:BUAU3CGlLvorLI26
github.com/armon/go-radix v0.0.0-20180808171621-7fddfc383310/go.mod h1:ufUuZ+zHj4x4TnLV4JWEpy2hxWSpsRywHrMgIH9cCH8=
github.com/aws/aws-sdk-go v1.44.315 h1:kYTC+Y/bJ9M7QQRvkI/LN5OWvhkIOL/YuFFRhS5QAOo=
github.com/aws/aws-sdk-go v1.44.315/go.mod h1:aVsgQcEevwlmQ7qHE9I3h+dtQgpqhFB+i8Phjh7fkwI=
github.com/aws/aws-sdk-go-v2 v1.18.1/go.mod h1:uzbQtefpm44goOPmdKyAlXSNcwlRgF3ePWVW6EtJvvw=
github.com/aws/aws-sdk-go-v2 v1.19.0/go.mod h1:uzbQtefpm44goOPmdKyAlXSNcwlRgF3ePWVW6EtJvvw=
github.com/aws/aws-sdk-go-v2 v1.20.0 h1:INUDpYLt4oiPOJl0XwZDK2OVAVf0Rzo+MGVTv9f+gy8=
github.com/aws/aws-sdk-go-v2 v1.20.0/go.mod h1:uWOr0m0jDsiWw8nnXiqZ+YG6LdvAlGYDLLf2NmHZoy4=
Expand All @@ -29,9 +30,11 @@ github.com/aws/aws-sdk-go-v2/credentials v1.13.27/go.mod h1:syOqAek45ZXZp29HlnRS
github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.13.5/go.mod h1:Gj7tm95r+QsDoN2Fhuz/3npQvcZbkEf5mL70n3Xfluc=
github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.13.7 h1:X3H6+SU21x+76LRglk21dFRgMTJMa5QcpW+SqUf5BBg=
github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.13.7/go.mod h1:3we0V09SwcJBzNlnyovrR2wWJhWmVdqAsmVs4uronv8=
github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.34/go.mod h1:wZpTEecJe0Btj3IYnDx/VlUzor9wm3fJHyvLpQF0VwY=
github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.35/go.mod h1:ipR5PvpSPqIqL5Mi82BxLnfMkHVbmco8kUwO2xrCi0M=
github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.37 h1:zr/gxAZkMcvP71ZhQOcvdm8ReLjFgIXnIn0fw5AM7mo=
github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.37/go.mod h1:Pdn4j43v49Kk6+82spO3Tu5gSeQXRsxo56ePPQAvFiA=
github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.28/go.mod h1:7VRpKQQedkfIEXb4k52I7swUnZP0wohVajJMRn3vsUw=
github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.29/go.mod h1:M/eUABlDbw2uVrdAn+UsI6M727qp2fxkp8K0ejcBDUY=
github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.31 h1:0HCMIkAkVY9KMgueD8tf4bRTUanzEYvhw7KkPXIMpO0=
github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.31/go.mod h1:fTJDMe8LOFYtqiFFFeHA+SVMAwqLhoq0kcInYoLa9Js=
Expand All @@ -53,6 +56,8 @@ github.com/aws/aws-sdk-go-v2/service/cloudcontrol v1.12.0 h1:8DsMbimTzqMPwA67LSv
github.com/aws/aws-sdk-go-v2/service/cloudcontrol v1.12.0/go.mod h1:gYqxg3FfW4QBeMQyZx9NLzzHilEw+n35s9/EqEZFais=
github.com/aws/aws-sdk-go-v2/service/cloudwatchlogs v1.23.0 h1:4qrHva+wLXK0Rd/0EdoqNxE1hCRJnY1wUDYx2QuFLwg=
github.com/aws/aws-sdk-go-v2/service/cloudwatchlogs v1.23.0/go.mod h1:jpmUVjmVglNCXwJhYc8jj4+yLRR5g6ksW1YEo/7+v+Y=
github.com/aws/aws-sdk-go-v2/service/codecatalyst v1.3.2 h1:jFOljHVhji2MnuQ4WA8meSDAA10EiAuvBKCnk2ScwH0=
github.com/aws/aws-sdk-go-v2/service/codecatalyst v1.3.2/go.mod h1:vqmY7K3HgWu04tjObNbIWxBI5sWqod3dY4vrpzZmenw=
github.com/aws/aws-sdk-go-v2/service/comprehend v1.25.0 h1:IEjvmr7Z3YUeBA5mT9BvKjUUyawpYLe8tC93L4lSxYc=
github.com/aws/aws-sdk-go-v2/service/comprehend v1.25.0/go.mod h1:1RcJb4N0GqgyJz6CZKbjFnf/CeRZPPa1t9rngOpPEjA=
github.com/aws/aws-sdk-go-v2/service/computeoptimizer v1.25.0 h1:0nzjeeW05wOH1NdMdz3oupxs2CmpBRox7TAac1ChMw4=
Expand Down
Loading