-
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Switch bootstrap to NixOS foundation account (#97)
* Switch bootstrap to NixOS foundation account * limit what instances can be spawned * Remove hardcoded region * no region * fix policy * arn * Fix * more granular IAM * t3a not supported in NixOS' default region * github pages needs to list all regions * Skip smoketests if they were already performed * Fix assuming roles for debugging. these roles are named differently outside of us-east-1 * Set up an AWS config and fix roles so they can be assumed by admin for debugging * skip terminated instances: the tests already passed for this ami * fix skip
- Loading branch information
Showing
13 changed files
with
347 additions
and
269 deletions.
There are no files selected for viewing
This file contains 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 |
---|---|---|
@@ -0,0 +1,31 @@ | ||
[sso-session nixos] | ||
sso_start_url = https://nixos.awsapps.com/start | ||
sso_region = eu-north-1 | ||
sso_registration_scopes = sso:account:access | ||
|
||
[profile default] | ||
sso_session = nixos | ||
sso_account_id = 427812963091 | ||
sso_role_name = AWSAdministratorAccess | ||
output = yaml | ||
region = eu-north-1 | ||
|
||
[profile upload-ami] | ||
source_profile = default | ||
role_arn = arn:aws:iam::427812963091:role/upload-ami | ||
|
||
[profile github-pages] | ||
source_profile = default | ||
role_arn = arn:aws:iam::427812963091:role/github-pages | ||
|
||
[profile plan] | ||
source_profile = default | ||
role_arn = arn:aws:iam::427812963091:role/plan | ||
|
||
[profile state] | ||
source_profile = default | ||
role_arn = arn:aws:iam::427812963091:role/state | ||
|
||
[profile apply] | ||
source_profile = default | ||
role_arn = arn:aws:iam::427812963091:role/apply |
This file contains 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 +1,5 @@ | ||
source $(direnv fetchurl "https://raw.githubusercontent.com/numtide/prj-spec/main/contrib/direnv" "sha256-54YaaGly6Q0E8GhFT9fB/h9tN1PDERo2/4R4X0Pdi/c=") | ||
|
||
export AWS_CONFIG_FILE=$PRJ_CONFIG_HOME/aws/config | ||
|
||
use flake |
This file contains 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 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 |
---|---|---|
|
@@ -3,3 +3,4 @@ result* | |
.direnv | ||
.vscode | ||
.nixos-test-history | ||
.data |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains 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 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.