This repository was archived by the owner on Aug 31, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 36
feat: aws_accounts:* commands [SC-35549] #399
Merged
Merged
Changes from all commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
0a7aea7
feat: aws_accounts:* commands
tvdaptible c2d638c
add check_external_aws_account! helper
tvdaptible ad6ae93
aws_accounts:check works now!
tvdaptible 827f80a
show errors when api calls fail for aws_accounts commands
tvdaptible 330f590
use aptible-api gem from branch, so we get the updated ExternalAwsAcc…
tvdaptible f9f03cf
add --remove-discovery-role-flag to aws_accounts:update
tvdaptible 9030c81
simplify local testing against different ruby versions
tvdaptible ad8ef84
upgrade aptible-auth to ~> 1.3 [SC-35150]
tvdaptible b1e64aa
temporarily use aptible-auth branch with fixed concurrent-ruby version
tvdaptible 76d92ff
Merge branch 'aptible-auth-upgrade' into aws-account-role
tvdaptible 78eab4d
pull in aptible-auth ~ 1.3 gem, and use yet another branch (for now) …
tvdaptible 865f74d
lint roller
tvdaptible 634bc0b
latest aptible-auth
tvdaptible 13fa249
use aptible-auth master branch for dependency (temporary until 1.4.0 …
tvdaptible c6657db
aptible-auth ~> 1.4, aptible-api ~> 1.12
tvdaptible 145a0e8
improve org list on multi org error
tvdaptible 54b0154
lint roller
tvdaptible a3cf945
fix test
tvdaptible File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,10 +1,58 @@ | ||
|
|
||
| export COMPOSE_IGNORE_ORPHANS ?= true | ||
| export RUBY_VERSION ?= 2.3.1 | ||
| RUBY_VERSION_MAJOR = $(word 1,$(subst ., ,$(RUBY_VERSION))) | ||
| export BUNDLER_VERSION ?= | ||
| ifeq ($(BUNDLER_VERSION),) | ||
| ifeq ($(RUBY_VERSION_MAJOR),2) | ||
| export BUNDLER_VERSION = 1.17.3 | ||
| endif | ||
| endif | ||
| export COMPOSE_PROJECT_NAME ?= aptible-cli-$(subst .,_,$(RUBY_VERSION)) | ||
|
|
||
| ## Build and pull docker compose images | ||
| build: | ||
| docker compose build --pull | ||
|
|
||
| ## Open shell in a docker container, supports CMD= | ||
| bash: build | ||
| docker compose run cli bash | ||
| $(MAKE) run CMD=bash | ||
|
|
||
| CMD ?= bash | ||
| ## Run command in a docker container, supports CMD= | ||
| run: | ||
| docker compose run cli $(CMD) | ||
|
|
||
| ## Run tests in a docker container, supports ARGS= | ||
| test: build | ||
| docker compose run cli bundle exec rake | ||
| $(MAKE) test-direct ARGS="$(ARGS)" | ||
|
|
||
| ## Run tests in a docker container without building, supports ARGS= | ||
| test-direct: | ||
| docker compose run cli bundle exec rake $(ARGS) | ||
|
|
||
| ## Run rubocop in a docker container, supports ARGS= | ||
| lint: build | ||
| $(MAKE) lint-direct ARGS="$(ARGS)" | ||
|
|
||
| ## Run rubocop in a docker container without building, supports ARGS= | ||
| lint-direct: | ||
| docker compose run cli bundle exec rake rubocop $(ARGS) | ||
|
|
||
| ## Clean up docker compose resources | ||
| clean: | ||
| docker compose down --remove-orphans --volumes | ||
|
|
||
| ## Alias for clean | ||
| down: clean | ||
|
|
||
| ## Show this help message | ||
| help: | ||
| @echo "\n\033[1;34mAvailable targets:\033[0m\n" | ||
| @awk 'BEGIN {FS = ":"; prev = ""} \ | ||
| /^## / {prev = substr($$0, 4); next} \ | ||
| /^[a-zA-Z_-]+:/ {if (prev != "") printf " \033[1;36m%-20s\033[0m %s\n", $$1, prev; prev = ""} \ | ||
| {prev = ""}' $(MAKEFILE_LIST) | sort | ||
| @echo | ||
|
|
||
| .PHONY: build bash test |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.