-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
reconciling for original intended purposes
- Loading branch information
Showing
5 changed files
with
113 additions
and
41 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 @@ | ||
| name: Sync to CodeCommit | ||
|
|
||
| on: | ||
| push: | ||
| branches: | ||
| - main | ||
|
|
||
| jobs: | ||
| sync: | ||
| runs-on: ubuntu-latest | ||
|
|
||
| steps: | ||
| - name: Checkout code | ||
| uses: actions/checkout@v2 | ||
|
|
||
| - name: Configure AWS credentials | ||
| uses: aws-actions/configure-aws-credentials@v1 | ||
| with: | ||
| aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} | ||
| aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | ||
| aws-region: us-gov-west-1 | ||
|
|
||
| - name: Sync to CodeCommit Goss Testing | ||
| run: | | ||
| git remote add goss-upstream ssh://git-codecommit.us-gov-west-1.amazonaws.com/v1/repos/image-pipeline-goss-testing | ||
| git push goss-upstream main --force | ||
| - name: Sync to CodeCommit Ansible Playbooks | ||
| run: | | ||
| git remote add ansible-upstream ssh://git-codecommit.us-gov-west-1.amazonaws.com/v1/repos/image-pipeline-ansible-playbooks | ||
| git push ansible-upstream main --force |
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,2 +1,34 @@ | ||
| # aws-image-pipeline | ||
| Terraform Workspace for creating and managing AWS Image Pipelines | ||
|
|
||
|
|
||
|
|
||
| To SSO Login: | ||
| aws sso login --profile 229685449397-csvd-dev-gov.inf-admin-t2 | ||
|
|
||
| export AWS_PROFILE=229685449397-csvd-dev-gov.inf-admin-t2 | ||
|
|
||
| aws sts get-caller-identity | ||
|
|
||
|
|
||
| Git Syncing / Mirroring: | ||
|
|
||
| git remote add ansible-upstream https://git-codecommit.us-gov-west-1.amazonaws.com/v1/repos/image-pipeline-ansible-playbooks | ||
|
|
||
| git remote add goss-upstream https://git-codecommit.us-gov-west-1.amazonaws.com/v1/repos/image-pipeline-goss-testing | ||
|
|
||
| git push origin main --force | ||
| git push ansible-upstream main --force | ||
| git push goss-upstream main --force | ||
|
|
||
| rebecaa linn : She does x86 (get context for ARM) | ||
|
|
||
|
|
||
| cd ~/.aws/ | ||
|
|
||
| terraform plan -out=plan.out | tee terraform_plan.log | ||
|
|
||
| #Formatting error command | ||
| yamllint 'file name' | ||
|
|
||
|
|
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
Empty file.
Empty file.