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

Oreilly main rebase [DRAFT] #2

Draft
wants to merge 698 commits into
base: oreilly-main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
698 commits
Select commit Hold shift + click to select a range
d6e2050
fix(secretsmanager-secret): prevent nil pointer on listing secrets
ekristen Jul 8, 2024
74864ec
test(secretsmanager-secret): add tests for lister and remove for prim…
ekristen Jul 8, 2024
1af4cca
fix(elasticache-memcachecluster): use arn instead of clusterid for ta…
ekristen Jul 8, 2024
39c986b
fix(elasticache-subnetgroup): use arn instead of clusterid for tag lo…
ekristen Jul 8, 2024
6bcd842
test(elasticcache-memcachecluster): add mock tests to account for inv…
ekristen Jul 8, 2024
06fbf6f
test(elasticache-subnetgroup): fix tests to use arn for mocked calls
ekristen Jul 8, 2024
872593b
feat(autoscaling-launch-configuration): standardize, add properties, …
ekristen Jul 9, 2024
87c2f28
feat(autoscaling-lifecycle-hook): standardize, add properties, make r…
ekristen Jul 9, 2024
2bfe414
test(autoscaling): add mock tests for lifecycle hook and launch confi…
ekristen Jul 9, 2024
e6a8415
feat(iam-user): support removing permission boundary from user
ekristen Jul 10, 2024
7252fe0
refactor(iam-virtual-mfa-device): rename to singular, rename all poin…
ekristen Jul 10, 2024
af7ca48
feat(iam-user-mfa-device): new resource for user specific mfa devices…
ekristen Jul 10, 2024
8bd3209
chore: update mocks
ekristen-dev[bot] Jul 10, 2024
5cf063b
chore: update mocks
ekristen-dev[bot] Jul 12, 2024
a86b2c9
fix(rds-snapshot): protect against nil pointer
ekristen Jul 20, 2024
1a6a67c
feat(ecs-task): support resource tags
ekristen Jul 22, 2024
9b065de
feat(apigateway): add created date to apigateways
ChaseFreeman17 Jul 22, 2024
9642414
feat(apigateway): fix creationdate
ChaseFreeman17 Jul 22, 2024
cb41afd
feat(apigateway): fix
ChaseFreeman17 Jul 22, 2024
be0e19d
refactor(dynamodb-backup): refactor to libnuke format and tweak prope…
ekristen Jul 24, 2024
888a0cf
test(dynamodb-backup): adding tests for dynamodb backups
ekristen Jul 24, 2024
69c7ae2
style(dynamodb-backup): fix import organization
ekristen Jul 24, 2024
4b316b1
fix(deps): update module github.com/urfave/cli/v2 to v2.27.3
renovate[bot] Jul 24, 2024
9bfc264
feat(iam): add creation dates for iam users and iam access keys (#1)
ChaseFreeman17 Jul 24, 2024
e218cf8
feat(dynamodb-table): support disabling deletion protection
ekristen Jul 25, 2024
c544d9e
test(dynamodb-table): add tests for lister, remove, and deletion prot…
ekristen Jul 25, 2024
3b00c41
style(dynamodb): rename to singular version
ekristen Jul 25, 2024
20a0c1c
style(dynamodb-table): fix import order and organization
ekristen Jul 25, 2024
9862e8b
ci(renovate): split aws-sdk-go minor versions
ekristen Jul 25, 2024
f4e95f2
fix(iot-authorizer): set to inactive before removing
ekristen Aug 6, 2024
45adf46
refactor(elastictranscoder-preset): convert to libnuke/aws-nuke@3 format
ekristen Aug 15, 2024
c32a780
refactor(elastictranscoder-preset): cleanup and func pointer standard…
ekristen Aug 15, 2024
63208b6
feat(s3-bucket): support bypassing governance mode with custom batch …
ekristen Aug 20, 2024
f76b90c
test(iam-user): fix pointer string in integration test
ekristen Aug 20, 2024
b376242
test(s3-bucket): add integration test for object lock configuration
ekristen Aug 20, 2024
6ae584b
refactor(s3-bucket): standardization of filename and pointer names
ekristen Aug 20, 2024
aa4157a
chore: golangci-lint cleanup
ekristen Aug 20, 2024
5e9dcdf
chore: refactor to libnuke resource format and code standards
ekristen May 18, 2024
5403fc8
fix: bad import ref for aws-nuke
ekristen Aug 20, 2024
ec83a4b
fix(deps): update module golang.org/x/text to v0.17.0
renovate[bot] Aug 20, 2024
6da9eae
feat(cloudwatchlogs-loggroup): honor api rate limits
ekristen Aug 15, 2024
e844470
fix(deps): update module golang.org/x/text to v0.17.0
renovate[bot] Aug 20, 2024
b72181b
chore(deps): update goreleaser/goreleaser-action action to v6 [releas…
renovate[bot] Jun 5, 2024
3a60b02
chore(ci): switch to goreleaser v2 config syntax
ekristen Aug 20, 2024
66ed266
feat(s3-bucket): support legal hold removal on objects
ekristen Aug 20, 2024
66e731c
docs(s3-bucket): add documentation
ekristen Aug 20, 2024
f3ffcaa
fix(elasticache): use ID instead of name for default user filter
Petersoj Aug 21, 2024
8a3510b
fix(elasticache): remove unused import
Petersoj Aug 21, 2024
df4ec5b
fix(s3-bucket): only warn if unknown error with get object lock config
ekristen Aug 21, 2024
4852453
fix(applicationautoscaling-scalabale-target): exclude namespace works…
ekristen Aug 21, 2024
3346187
feat(sns-subscription): add properties
ekristen Aug 21, 2024
f97192c
feat(configservice-configurationrecorder): add properties
ekristen Aug 21, 2024
0959ffa
feat(configservice-deliverychannel): add properties
ekristen Aug 21, 2024
51f7976
feat(cloudwatchevents-rule): add properties
ekristen Aug 21, 2024
416378c
feat(iam-saml-provider): add properties
ekristen Aug 21, 2024
9a12891
feat(cloudfront-distribution-deployment): add properties
ekristen Aug 21, 2024
2d26fc5
test(iam-saml-provider): fix tests after struct changes
ekristen Aug 21, 2024
9162466
feat(dax-subnet-group): add properties
ekristen Aug 21, 2024
95c9b1c
feat(dax-parameter-group): add properties and filter
ekristen Aug 21, 2024
53e5e2b
feat(dax-cluster): add properties
ekristen Aug 21, 2024
88e324e
chore: fix nolint statements
ekristen Aug 21, 2024
35873b0
feat(configservice-configrule): remove remediation config if it exists
ekristen Aug 27, 2024
cc79cfb
refactor(configservice-configrule): standardize naming conventions
ekristen Aug 27, 2024
f451a39
chore(configservice-configrule): fix lint violations
ekristen Aug 27, 2024
f29a2d8
test(kms): adding mocks for kms service
ekristen Aug 27, 2024
bbcd940
fix(kms-key): continue processing keys if error encountered
ekristen Aug 27, 2024
afe716c
test(kms-key): add mocked test coverage
ekristen Aug 27, 2024
b0bb6b3
refactor(kms-alias): pointer standarization
ekristen Aug 27, 2024
74afaa8
test(kms-alias): add mocked test coverage
ekristen Aug 27, 2024
b5a1e92
refactor(kms): naming standardization
ekristen Aug 27, 2024
b809438
fix(kms-key): only get tags if customer managed key
ekristen Aug 27, 2024
11f461e
fix(iam-virtual-mfa-device): handle unassigned mfa devices
ekristen Aug 27, 2024
e57c4b7
test(iam-virtual-mfa-device): increase test coverage for unassigned
ekristen Aug 27, 2024
eaf7a94
feat(ec2-key-pair): add key type and create time properties
ekristen Aug 28, 2024
2c8b29e
fix(s3-bucket): only bypass governance if object lock enabled
ekristen Aug 28, 2024
076e49a
feat(resource): add event bridge scheduler schedule resource
ekristen Aug 29, 2024
25c1a41
feat(resourcegroups-group): add filter for managed, add properties
ekristen Aug 31, 2024
1584e81
feat(resource): add appregistry application resource
ekristen Aug 31, 2024
04eb306
chore: fix nolint statements
ekristen Aug 31, 2024
d013a0c
fix(scheduler-schedule): add missing client token to request
ekristen Aug 31, 2024
843c428
feat(elasticache): add ElastiCache Serverless nuking
Petersoj Aug 24, 2024
12e6136
fix(elasticache): tests with serverless feat
Petersoj Aug 24, 2024
004e037
fix(elasticache-cachecluster): standardization, querying tags, proper…
ekristen Aug 31, 2024
66c3450
refactor(athena-data-catalog): standardize to libnuke format
ekristen Aug 31, 2024
a9ee5e4
refactor(athena-prepared-statement): standardize to libnuke format
ekristen Aug 31, 2024
7a3e3dd
refactor(athena-work-group): rearrange struct location, rename pointe…
ekristen Aug 31, 2024
9f9111c
refactor(athena-named-query): rearrange struct location, rename point…
ekristen Aug 31, 2024
0130e01
refactor(cloudwatch-anomaly-detector): rearrange struct location, ren…
ekristen Aug 31, 2024
df25a47
refactor(cloudwatch-insight-rule): rearrange struct location, rename …
ekristen Aug 31, 2024
c7d961a
refactor(cloudwatch-anomaly-detector): adjust properties
ekristen Aug 31, 2024
14ccb62
refactor(cloudwatch-insight-rule): rename pointer, switch to new prop…
ekristen Aug 31, 2024
dd149b8
feat(run): add flag to control the run loop sleep delay
ekristen Aug 24, 2024
b54ce36
fix(command/run): point to correct flag name
ekristen Aug 31, 2024
232932b
fix(ec2-vpc-endpoint-connection): filter rejected state
ekristen Sep 3, 2024
110df54
test(kms-key): add test to check for tags being set
ekristen Sep 8, 2024
407ea71
docs: fix brew install command
ekristen Sep 11, 2024
7740e72
feat(resource): add resource for Eventbridge Pipes
MSchouwPablo Sep 11, 2024
41de8c7
fix(pipes-pipe): resource name
MSchouwPablo Sep 11, 2024
3feeb5e
feat(iam-role): add new properties (name, path, dates and more)
ekristen Sep 8, 2024
51a46d5
test(iam-instance-profile-role): increasing test coverage
ekristen Sep 10, 2024
27ffc2a
refactor(iam-instance-profile): prepare for tests, rename props
ekristen Sep 10, 2024
c6d562d
test(iam-instance-profile): adding test coverage
ekristen Sep 10, 2024
b30880d
feat(iam-login-profile): add and refactor properties
ekristen Sep 10, 2024
e01261d
test(iam-login-profile): increase test coverage
ekristen Sep 10, 2024
89e749c
fix(route53-resolver-rule): guard against nil pointers
ekristen Sep 11, 2024
b0eb63b
test(route53): adding mocks for testing route53
ekristen Sep 11, 2024
c6a1a37
test(route53): adding mocks for testing route53resolver
ekristen Sep 11, 2024
deb68b9
test(route53-resolver-rule): increase test coverage
ekristen Sep 11, 2024
9ded467
chore: fix lint violation
ekristen Sep 11, 2024
3a4aab6
test(budgets): adding mocks for budgets service
ekristen Sep 11, 2024
c031d52
fix(budgets-budget): fix resource name, deprecate old
ekristen Sep 11, 2024
7537ac1
test(budgets-budget): add test coverage
ekristen Sep 11, 2024
093d9f3
feat(budgets-budget): add tags to properties for filtering with tests
ekristen Sep 11, 2024
75b37c8
feat(resource): add resource for amplify apps
kurtmc Nov 12, 2023
45303c0
refactor(amplify-app): convert to libnuke and aws-nuke v3 format
ekristen Sep 11, 2024
d923972
test(amplify-app): add coverage for props and stringer
ekristen Sep 11, 2024
3796ee0
feat(cognito): add tags to properties
MSchouwPablo Sep 13, 2024
8c2952b
feat(pipes-pipe): add tags to properties
MSchouwPablo Sep 13, 2024
0fbf8f3
style(cognito): update imports
MSchouwPablo Sep 13, 2024
457f0f7
style(pipes-pipe): updated imports
MSchouwPablo Sep 13, 2024
8b75845
feat: shell auto completion, new command version, completion
ekristen Sep 18, 2024
e6a7e37
docs: cli shell completion
ekristen Sep 18, 2024
107ca9f
feat(config): add support for custom alias block keywords
ekristen Sep 13, 2024
a39bc55
test(config): add test coverage for custom alias block keywords
ekristen Sep 13, 2024
e06d2b9
docs(config): add supporting documentation for blocklist-alias-keywords
ekristen Sep 13, 2024
088a3da
test(config): fix failing test
ekristen Sep 13, 2024
68d5bd6
feat(config): support disabling default alias blocklist terms
ekristen Sep 16, 2024
50de6e6
docs: update docs to match code changes
ekristen Sep 18, 2024
342e8ef
feat: add support for ec2 tgw connect peers
1solomonwakhungu Dec 19, 2023
3b81192
feat(ec2-tgw-connect-peer): add properties function
1solomonwakhungu Dec 19, 2023
a05e1fe
refactor(ec2-tgw-connect-peer): remove comment
1solomonwakhungu Dec 19, 2023
d6fa044
fix(ec2-tgw-connect-peer): refactor for libnuke, add additional prope…
ekristen Sep 13, 2024
5417aa8
refactor(cognito): use new standards for naming pointers and files
ekristen Sep 19, 2024
f3991a4
feat(cognito-userpool): support disable deletion protection
ekristen Sep 19, 2024
aaeb6e8
test(cognito-userpool): add test coverage
ekristen Sep 19, 2024
8d78e6b
docs(cognito-userpool): add documentation
ekristen Sep 19, 2024
59e37ac
refactor(iam-policy): pointer and nil pointer refactor
ekristen Sep 25, 2024
76203e2
test(iam-policy): add test coverage for properties
ekristen Sep 25, 2024
6f5b55d
refactor(iam-policy): export struct fields
ekristen Sep 25, 2024
5bb69ee
feat(iam-policy): add CreateDate property
ekristen Sep 25, 2024
4deb819
feat(iam-user): add new properties
ekristen Sep 26, 2024
fd5672f
feat(resource): add support for ECS capacity providers
Octogonapus Nov 8, 2022
dbc4b06
fix(ecs-capacity-provider): don't attempt to remove reserved capacity…
Octogonapus Nov 8, 2022
a63492c
feat(ecs-capacity-provider): adding properties with refactor to libnu…
ekristen Sep 26, 2024
5b5759c
feat(wafv2): captcha integration api key nuking
Petersoj Sep 16, 2024
39b98c2
fix(wafv2): better api key properties
Petersoj Sep 18, 2024
63d59c4
refactor(wafv2-api-key): implement missing standards and code cleanup
ekristen Sep 26, 2024
bfcd120
feat(quicksight): support deleting quicksight users
kurtmc Sep 19, 2024
d43c85d
feat(quicksight-user): additional properties
ekristen Sep 26, 2024
827fc62
feat: add support for backup-report-plan
smittnacht Sep 25, 2024
97a0206
chore: add requested review changes
smittnacht Sep 26, 2024
c034f77
fix: change AWSBackupReportPlan to BackupReportPlan
smittnacht Sep 26, 2024
0497889
fix: set ARN as property, make String() return Name
smittnacht Sep 26, 2024
90d1072
fix: golangci-lint
smittnacht Sep 26, 2024
8a5d57c
chore(tool/create-resource): fix import paths
ekristen Aug 29, 2024
d44e0ae
feat(resource): add support for AWS GameLift builds, fleets, queues, …
luciangutu Jun 8, 2023
c85fbb0
feat(resource): add Pinpoint Apps and Phone Numbers support
luciangutu Jun 8, 2023
30acb93
refactor(gamelift-build): convert to libnuke resource format
ekristen Sep 26, 2024
6931a63
refactor(gamelift-fleet): convert to libnuke resource format
ekristen Sep 26, 2024
fbc4b19
refactor(gamelift-mm-config): convert to libnuke resource format
ekristen Sep 26, 2024
7877727
refactor(gamelift-mm-rule): convert to libnuke resource format
ekristen Sep 26, 2024
cb69baf
refactor(gamelift-queue): convert to libnuke resource format
ekristen Sep 26, 2024
8688d1f
refactor(pinpoint-app): convert to libnuke resource format
ekristen Sep 26, 2024
b3dfaf5
refactor(pinpoint-phone-number): convert to libnuke resource format
ekristen Sep 26, 2024
81f06fb
refactor(pinpoint-app): rename all receivers
ekristen Sep 26, 2024
6b791a8
refactor(pinpoint-phone-number): rename all receivers
ekristen Sep 26, 2024
48b1555
feat(pinpoint-app): adding properties
ekristen Sep 26, 2024
b571b07
feat(pinpoint-phone-number): add pagination and properties
ekristen Sep 26, 2024
b0e0f3b
feat(pinpoint-app): add pagination support
ekristen Sep 26, 2024
c58d798
test(pinpoint): adding mocks
ekristen Sep 26, 2024
0c4abd8
test(gamelift): add mocks for tests
ekristen Sep 26, 2024
b625f24
feat(gamelift-build): add properties
ekristen Sep 26, 2024
dc7e35c
feat(gamelift-fleet): add properties and pagination support
ekristen Sep 26, 2024
7ac43db
feat(gamelift-queue): add properties and pagination
ekristen Sep 26, 2024
31a49bf
feat(gamelift-mm-rule): add properties and pagination
ekristen Sep 26, 2024
e8ba8af
feat(gamelift-mm-config): add properties and pagination
ekristen Sep 26, 2024
84ccebf
chore(gamelift-fleet): fix lint error
ekristen Sep 27, 2024
76828d0
chore(pinpoint-phone-number): fix lint error
ekristen Sep 27, 2024
e762d32
feat(api-gateway-api-key): support properties
ekristen Sep 27, 2024
16db46f
refactor(api-gateway-usage-plan): standardization
ekristen Sep 27, 2024
b66359a
refactor(api-gateway-api-key): standardization - receiver names
ekristen Sep 27, 2024
e6a776b
fix(dms-certificate): use correct delete function
ekristen Sep 30, 2024
bcc3eeb
feat(dms-certificate): add properties
ekristen Sep 30, 2024
da38816
feat(eks-fargate-profile): tag support
ekristen Sep 30, 2024
63bcf6c
chore: fix lint violations
ekristen Sep 30, 2024
519c659
feat(mgn-source-server): disconnect before delete
ekristen Sep 30, 2024
c258db4
feat(iam-role): allow removal of service-linked roles
ekristen Sep 30, 2024
5a4197c
docs(iam-role): detail the settings
ekristen Sep 30, 2024
29834b6
chore: fix lint violation
ekristen Sep 30, 2024
6faf64a
feat(cloudwatchevents-rule): add pagination support
ekristen Oct 1, 2024
58ef6d4
feat(iam-role-policy): filter out sso managed policies
ekristen Oct 1, 2024
8ec391b
feat(run): pass account id and logger in lister opts
ekristen Oct 1, 2024
ec132c8
test: fix tests to use standard lister opts and account id passed around
ekristen Oct 1, 2024
ccd6391
chore(quicksight-subscription): fix string occurrence lint violation
ekristen Oct 1, 2024
92b7309
test(quicksight-subscription): fix a failing test due to pointer change
ekristen Oct 1, 2024
f0f21b1
feat(resource): add redshift snapshot schedule
MikeSchouw Aug 30, 2023
374e150
refactor(redshift-snapshot-schedule): convert to libnuke resource format
ekristen Sep 30, 2024
7555e96
feat(redshift-snapshot-schedule): add tags
ekristen Sep 30, 2024
0cd37e2
refactor(polly-lexicon): convert to libnuke resource standard format
ekristen Sep 30, 2024
4bcfbed
chore(polly-lexicon): fix lint violation
ekristen Sep 30, 2024
0e2623d
feat(resource): adding rekognition project and dataset support
swhite-oreilly Sep 19, 2023
d64d17f
refactor(rekognition-dataset): convert to libnuke resource standard f…
ekristen Sep 30, 2024
40a83ce
refactor(rekognition-project): convert to libnuke resource standard f…
ekristen Sep 30, 2024
e52ea8a
refactor(codeguru-reviewer): convert to libnuke resource standard format
ekristen Sep 30, 2024
102a867
refactor(codepipeline): convert to libnuke resource standard format
ekristen Oct 1, 2024
53a5d33
refactor(codedeploy): convert to libnuke resource standard format
ekristen Oct 1, 2024
0b4ca66
feat(resource): add support for codebuild build batches
gsoria Oct 3, 2023
3850701
feat(resource): add support for codebuild source credentials
gsoria Oct 3, 2023
370d5d9
refactor(codebuild-build): convert to libnuke resource format
ekristen Oct 1, 2024
dcf4672
refactor(codebuild-build-batch): convert to libnuke resource format
ekristen Oct 1, 2024
3163acf
refactor(codebuild-source-credential): convert to libnuke resource fo…
ekristen Oct 1, 2024
dd78d9e
chore(codebuild-source-credential): fix lint violation on comments
ekristen Oct 1, 2024
fb640a6
refactor(transcribe): convert all transcribe resources to libnuke res…
ekristen Oct 2, 2024
f56f5b3
refactor(transcribe): convert vocabulary filter to libnuke resource f…
ekristen Oct 2, 2024
5e57744
chore(transcribe): property cleanup, default is RFC3339, nil is ignored
ekristen Oct 2, 2024
5d8b9ed
docs: improve quickstart, add starter config
ekristen Oct 2, 2024
331b9be
feat(backup-vault): fix resource name, add deprecated alias
ekristen Oct 2, 2024
1914aa5
fix(gamelift): skip unsupported regions
ekristen Oct 2, 2024
c90e04f
fix(transcribe): skip unsupported regions
ekristen Oct 2, 2024
ba10fea
refactor(quicksight-subscription): fix imports
ekristen Oct 2, 2024
7fa6110
fix(quicksight-user): skip unsupported regions
ekristen Oct 2, 2024
2bf1f45
feat(ec2-default-security-group-rule): add missing property for Defau…
ekristen Oct 2, 2024
631710a
docs: improving the installation docs
ekristen Oct 2, 2024
5ff9c52
fix(deps): update module github.com/urfave/cli/v2 to v2.27.5
renovate[bot] Oct 13, 2024
e0c5e31
fix(neptune-instance): filter to neptune rds instances only
ekristen Oct 10, 2024
d03f1b7
feat(neptune-instance): support properties and tags
ekristen Oct 10, 2024
d930998
feat(apigateway-restapi): support rate limit on remove
ekristen Oct 10, 2024
5439fa2
feat(apigateway-api-key): support rate limit on remove
ekristen Oct 10, 2024
fad517c
docs: improving resource documentation
ekristen Oct 10, 2024
e6a5d50
fix(ec2-ip): include network border group if set during remove
ekristen Oct 10, 2024
1d9dbda
chore(golangci-lint): fix lint violation
ekristen Oct 10, 2024
e79ab0c
fix(secretsmanager-secret): filter aws managed secrets
ekristen Oct 10, 2024
ef68c7b
docs: add community contribution presets
ekristen Oct 10, 2024
9f67c8d
feat(resource): add new OSPipeline resource for opensearch service pi…
ekristen Oct 11, 2024
b7d6c78
feat(kms-key): add kms alias to kms key for filtering purposes
ekristen Oct 11, 2024
2d51408
test(kms-key): fix tests for new alias property and list aliases call
ekristen Oct 11, 2024
d183cbd
docs: add to contrib config for control tower, fix copy/paste issue i…
ekristen Oct 14, 2024
16a24d3
test(iam-user): fix bad reference on integration tests
ekristen Oct 14, 2024
3accd57
test(s3-bucket): fix integration test for bypass governance
ekristen Oct 14, 2024
b2fb73b
feat: filter groups
ekristen Oct 15, 2024
a8dc203
docs: filter groups
ekristen Oct 15, 2024
0ddcce2
docs: dataOlderThanNow
ekristen Oct 17, 2024
fe9c533
feat(ec2-vpc-endpoint-connection): add tags to properties
ma3574 Oct 18, 2024
baa05c3
refactor(ec2-vpc-endpoint-connection): switch to exported field
ma3574 Oct 18, 2024
3d1c03b
docs: add clarity around filter and filter examples
ekristen Oct 22, 2024
aecdbee
first pass of fixing merge issues
corybekk Nov 5, 2024
584b92a
oreilly modules need refactor. Temporarily move them to need_refactor…
corybekk Nov 5, 2024
0bb6a0a
remove unused files from old repo
corybekk Nov 6, 2024
d43ed42
merge main
corybekk Nov 6, 2024
f6a02d7
remove unused ci.yaml
corybekk Nov 7, 2024
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
132 changes: 132 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,132 @@
# Distributed via https://github.com/rebuy-de/terraform-cluster-config
# Modify only there, changes in project repos will be overwritten

root = true

[openapi-spec.yaml]
ij_formatter_enabled = false

[*]
charset = utf-8
end_of_line = lf
indent_size = 4
indent_style = space
insert_final_newline = true
max_line_length = 120
tab_width = 4
trim_trailing_whitespace = true
ij_continuation_indent_size = 8
ij_formatter_off_tag = @formatter:off
ij_formatter_on_tag = @formatter:on
ij_formatter_tags_enabled = true
ij_smart_tabs = false
ij_visual_guides =
ij_wrap_on_typing = false

[{*.htm,*.html,*.sht,*.shtm,*.shtml}]
ij_html_attribute_wrap = off
ij_html_do_not_indent_children_of_tags =
ij_html_keep_blank_lines = 1
ij_html_text_wrap = off

[{*.cjs,*.js}]
ij_javascript_do_while_brace_force = always
ij_javascript_for_brace_force = always
ij_javascript_if_brace_force = always
ij_javascript_keep_blank_lines_in_code = 1
ij_javascript_use_double_quotes = false
ij_javascript_while_brace_force = always

[{*.ats,*.cts,*.mts,*.ts}]
ij_typescript_do_while_brace_force = always
ij_typescript_for_brace_force = always
ij_typescript_if_brace_force = always
ij_typescript_import_prefer_absolute_path = true
ij_typescript_keep_blank_lines_in_code = 1
ij_typescript_space_before_function_left_parenth = false
ij_typescript_use_double_quotes = false
ij_typescript_while_brace_force = always

[*.coffee]
indent_size = 2

[*.java]
ij_continuation_indent_size = 4
ij_java_blank_lines_around_field = 1
ij_java_blank_lines_around_initializer = 0
ij_java_class_brace_style = next_line
ij_java_class_count_to_use_import_on_demand = 99
ij_java_do_while_brace_force = always
ij_java_doc_add_blank_line_after_param_comments = true
ij_java_doc_add_blank_line_after_return = true
ij_java_for_brace_force = always
ij_java_if_brace_force = always
ij_java_keep_blank_lines_before_right_brace = 0
ij_java_keep_blank_lines_in_code = 1
ij_java_keep_blank_lines_in_declarations = 0
ij_java_keep_simple_classes_in_one_line = true
ij_java_keep_simple_lambdas_in_one_line = true
ij_java_method_brace_style = next_line
ij_java_names_count_to_use_import_on_demand = 99
ij_java_new_line_after_lparen_in_record_header = true
ij_java_packages_to_use_import_on_demand =
ij_java_record_components_wrap = on_every_item
ij_java_rparen_on_new_line_in_record_header = true
ij_java_while_brace_force = always

[{*.kt,*.kts}]
ij_continuation_indent_size = 4
ij_kotlin_code_style_defaults = KOTLIN_OFFICIAL
ij_kotlin_name_count_to_use_star_import = 2147483647
ij_kotlin_name_count_to_use_star_import_for_members = 2147483647
ij_kotlin_packages_to_use_import_on_demand =

[{*.ctp,*.hphp,*.inc,*.module,*.php,*.php4,*.php5,*.phtml}]
ij_php_align_multiline_parameters = false
ij_php_blank_lines_around_field = 1
ij_php_blank_lines_before_return_statement = 1
ij_php_comma_after_last_array_element = true
ij_php_force_short_declaration_array_style = true
ij_php_keep_blank_lines_before_right_brace = 0
ij_php_keep_blank_lines_in_code = 1
ij_php_keep_blank_lines_in_declarations = 0
ij_php_keep_rparen_and_lbrace_on_one_line = true
ij_php_lower_case_boolean_const = true
ij_php_lower_case_null_const = true
ij_php_method_parameters_new_line_after_left_paren = true
ij_php_method_parameters_right_paren_on_new_line = true
ij_php_phpdoc_blank_line_before_tags = true
ij_php_phpdoc_blank_lines_around_parameters = true
ij_php_space_after_type_cast = true
ij_php_space_before_short_closure_left_parenthesis = true

[{*.ant,*.fxml,*.jhm,*.jnlp,*.jrxml,*.pom,*.rng,*.tld,*.wadl,*.wsdl,*.xml,*.xsd,*.xsl,*.xslt,*.xul,phpunit.xml.dist}]
ij_xml_space_inside_empty_tag = true

[{*.tf,*.tfvars,*.hcl}]
tab_width = 2
ij_continuation_indent_size = 4

[*.less]
tab_width = 2
ij_continuation_indent_size = 2

[*.sass]
tab_width = 2
ij_continuation_indent_size = 2

[*.scala]
ij_scala_do_while_brace_force = always
ij_scala_for_brace_force = always
ij_scala_if_brace_force = always
ij_scala_keep_blank_lines_before_right_brace = 0
ij_scala_keep_blank_lines_in_code = 0
ij_scala_keep_blank_lines_in_declarations = 0
ij_scala_multiline_string_closing_quotes_on_new_line = false

[*.scss]
ij_continuation_indent_size = 4

[{*.yaml,*.yml}]
ij_yaml_spaces_within_braces = false
ij_yaml_spaces_within_brackets = false
15 changes: 15 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# https://docs.github.com/en/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file

version: 2
updates:
- package-ecosystem: "gomod"
directory: "/"
schedule:
interval: "weekly"
day: "tuesday"
time: "10:00"
timezone: "Europe/Berlin"
groups:
golang:
patterns:
- "*"
13 changes: 13 additions & 0 deletions .github/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# https://docs.github.com/en/repositories/releasing-projects-on-github/automatically-generated-release-notes#configuring-automatically-generated-release-notes

changelog:
categories:
- title: Notable changes
labels:
- '*'
exclude:
labels:
- dependencies
- title: Dependency updates
labels:
- dependencies
54 changes: 54 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name: release

on:
release:
types: [created]

jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
ref: main
- name: Update versions in readme
run: |
sed -r -i "s/aws-nuke:v[0-9]+\.[0-9]+\.[0-9]+/aws-nuke:${{ github.ref_name }}/" README.md
sed -r -i "s/aws-nuke-v[0-9]+\.[0-9]+\.[0-9]+/aws-nuke-${{ github.ref_name }}/" README.md
sed -r -i "s/\/v[0-9]+\.[0-9]+\.[0-9]+\//\/${{ github.ref_name }}\//" README.md
- uses: peter-evans/create-pull-request@v6
name: Create Pull Request
with:
title: Update readme for ${{ github.ref_name }} release
commit-message: Update readme for ${{ github.ref_name }} release
body: Updating version references in the readme to ${{ github.ref_name }}
branch: update-readme-${{ github.ref_name }}
delete-branch: true

release:
name: Publish binaries
runs-on: ubuntu-22.04
steps:
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: '1.22'
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Build Project binaries
env:
CGO_ENABLED: 0
run: |
make xc
- name: Upload binaries to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: dist/aws*
tag: ${{ github.ref }}
overwrite: true
file_glob: true
2 changes: 1 addition & 1 deletion go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -122,4 +122,4 @@ gopkg.in/yaml.v2 v2.4.0 h1:D8xgwECY7CYvx+Y2n4sBz93Jn9JRvxdiyyo8CTfuKaY=
gopkg.in/yaml.v2 v2.4.0/go.mod h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ=
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=
gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
105 changes: 105 additions & 0 deletions need_refactor/bedrock-agentalias.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,105 @@
package resources

import (
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/session"
"github.com/aws/aws-sdk-go/service/bedrockagent"
"github.com/rebuy-de/aws-nuke/v2/pkg/types"
)

type BedrockAgentAlias struct {
svc *bedrockagent.BedrockAgent
AgentId *string
AgentAliasId *string
AgentAliasName *string
}

func init() {
register("BedrockAgentAlias", ListBedrockAgentAliases)
}

func ListBedrockAgentAliases(sess *session.Session) ([]Resource, error) {
svc := bedrockagent.New(sess)
resources := []Resource{}

agentIds, err := ListBedrockAgentIds(svc)
if err != nil {
return nil, err
}

for _, agentId := range agentIds {
params := &bedrockagent.ListAgentAliasesInput{
MaxResults: aws.Int64(100),
AgentId: aws.String(agentId),
}
for {
output, err := svc.ListAgentAliases(params)
if err != nil {
return nil, err
}

for _, agentAliasInfo := range output.AgentAliasSummaries {
resources = append(resources, &BedrockAgentAlias{
svc: svc,
AgentId: aws.String(agentId),
AgentAliasName: agentAliasInfo.AgentAliasName,
AgentAliasId: agentAliasInfo.AgentAliasId,
})
}

if output.NextToken == nil {
break
}
params.NextToken = output.NextToken
}

}

return resources, nil
}

func ListBedrockAgentIds(svc *bedrockagent.BedrockAgent) ([]string, error) {

agentIds := []string{}
params := &bedrockagent.ListAgentsInput{
MaxResults: aws.Int64(100),
}
for {
output, err := svc.ListAgents(params)
if err != nil {
return nil, err
}

for _, agent := range output.AgentSummaries {
agentIds = append(agentIds, *agent.AgentId)
}

if output.NextToken == nil {
break
}
params.NextToken = output.NextToken
}

return agentIds, nil
}

func (f *BedrockAgentAlias) Remove() error {
_, err := f.svc.DeleteAgentAlias(&bedrockagent.DeleteAgentAliasInput{
AgentAliasId: f.AgentAliasId,
AgentId: f.AgentId,
})
return err
}

func (f *BedrockAgentAlias) Properties() types.Properties {
properties := types.NewProperties().
Set("AgentId", f.AgentId).
Set("AgentAliasId", f.AgentAliasId).
Set("AgentAliasName", f.AgentAliasName)

return properties
}

func (f *BedrockAgentAlias) String() string {
return *f.AgentAliasName
}
Loading
Loading