-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #89 from aws-samples/fix-privaterepo-noapproval
Fix privaterepo noapproval
- Loading branch information
Showing
5 changed files
with
74 additions
and
2 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,16 @@ | ||
# README | ||
|
||
The getOptions runs in the CodePipeline to pull the SSM Parameter Store config and generate a config.json. The config.json is then used aas an input into the CDK deployment. This util can be run directly. | ||
|
||
To pull the correct SSM Parameter Store values we must set the `INSTANCE_NAME` that is used in the prefix. By default this is `main`. | ||
|
||
``` | ||
export INSTANCE_NAME="main" | ||
npm run start | ||
``` | ||
|
||
The CodePipeline synth step copies the result of this util into the CDK working directory (/infrastructure). | ||
|
||
```sh | ||
cp ./config.json ../../infrastructure/config.json && cat ../../infrastructure/config.json | ||
``` |
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 |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# README | ||
|
||
The installer util can be run directly or in steps. Previx these actions with `npm run`. | ||
|
||
``` | ||
npm run wizard | ||
``` | ||
|
||
## Actions | ||
|
||
- `wizard`: Runs all parts of the wizard | ||
|
||
The wizard is broken into steps run in this specific order. | ||
|
||
1. `awsconfig`: Gets the AWS config details (E.g. Account ID, Region ID) | ||
2. `options`: Gets the options from the user via interactive CLI | ||
3. `prereq`: Performs preqrequisites (E.g. Enable Macie) | ||
4. `parameters`: Pushes options into parameter store | ||
5. `deploy`: Runs CDK deployment | ||
6. `monitor`: Monitors CodePipeline | ||
|
||
For quickly testing manual config changes the parameters and deploy steps can be run with this: | ||
|
||
- `parameters_deploy`: combines `parameters` & `deploy` from above | ||
|
||
## config.json | ||
A config.json file is created by the installer into the /infrastructure directory. When calling the actions individually this file will need to be copied to the working directory. You can then edit the config.json for quick edits. | ||
|
||
```sh | ||
$ pwd | ||
/home/philipws/src/document-translation/util/installer | ||
cp ../../infrastructure/config.json config.json | ||
``` | ||
|
||
When using the wizard action the json data is passed through the script so no config.json is used. This only applies when being called directly. |
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