Skip to content

Commit

Permalink
nit and test runme
Browse files Browse the repository at this point in the history
usrbinkat authored Oct 10, 2024
1 parent b8f4862 commit 8a1dfd5
Showing 3 changed files with 45 additions and 9 deletions.
6 changes: 3 additions & 3 deletions .envrc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
source .tmpenv 2>/dev/null || true
source ../.tmpenv # 2>/dev/null || true
##################################################################################
# bash bin
export PATH=$PATH:.github/bin
@@ -9,8 +9,8 @@ export PATH=$PATH:.github/bin
##################################################################################
# Basic Config Variables
export BROWSER=echo
#export KUBECONFIG=$PWD/.kube/config
#export TALOSCONFIG=$PWD/.talos/manifest/talosconfig
export KUBECONFIG=$PWD/.kube/config
export TALOSCONFIG=$PWD/.talos/manifest/talosconfig
#export OMNICONFIG=.talos/omniconfig

##################################################################################
48 changes: 42 additions & 6 deletions docs/README.md
Original file line number Diff line number Diff line change
@@ -40,21 +40,48 @@ Use Pulumi to load environment variables, configuration files, and credentials:
```bash {"id":"01J97M1349ZY70MQVHDGAFVNEB","name":"load-environments-and-secrets","tag":"setup"}
export ENVIRONMENT="containercraft/NavtecaAwsCredentialsConfigSmce/navteca-aws-credentials-config-smce"
eval $(pulumi env open --format=shell $ENVIRONMENT | tee ../.tmpenv; direnv allow)
#ln -s $GIT_CONFIG ~/.gitconfig
#ln -sf $AWS_CONFIG_FILE ~/.aws/config
#ln -sf $AWS_SHARED_CREDENTIALS_FILE ~/.aws/credentials
echo "Loaded environment $ENVIRONMENT"

alias aws='aws --profile smdc-cba'

```

### 3. Validate AWS CLI Access

Get Caller Identity to verify your AWS identity:

```bash {"excludeFromRunAll":"true","id":"01J97M1349ZY70MQVHDFZQZQZT","name":"validate-aws-identity","tag":"validate-aws"}
aws --profile smdc-cba sts get-caller-identity

```

### 3. Deploy IaC

Deploy the infrastructure as code (IaC) using Pulumi:

```bash {"id":"01J97M1349ZY70MQVHDFZQZQZT","name":"deploy-iac","tag":"setup"}
git remote add origin https://github.com/containercraft/konductor
git config remote.origin.url https://github.com/containercraft/konductor
pulumi up --yes --stack containercraft/scip-ops-prod --skip-preview=true --refresh=true

```

### 3. Install the SMCE CLI Tool

Clone the SMCE CLI repository && Symlink `smce` cli:

```bash {"id":"01J97M1349ZY70MQVHDMSP1MHQ","name":"install-smce-cli","tag":"setup"}
mkdir -p ~/.local/bin; rm -rf ~/smce-cli
git clone https://git.smce.nasa.gov/smce-administration/smce-cli.git ~/smce-cli
ln -sf ~/smce-cli/smce ~/.local/bin/smce
cd ~
rm -rf ~/smce-cli ~/.local/bin/smce
ln -sf $GIT_CONFIG ~/.gitconfig

git config remote.origin.url https://git.smce.nasa.gov/smce-administration/smce-cli.git
git clone https://git.smce.nasa.gov/smce-administration/smce-cli.git ~/smce-cli && cd ~/smce-cli && ls

mkdir -p ~/.local/bin
cp -f ~/smce-cli/smce ~/.local/bin/smce
chmod +x ~/.local/bin/smce

smce --help; true

```
@@ -149,4 +176,13 @@ aws sts get-session-token \
--profile default \
--serial-number <mfa-device-arn> \
--token-code $MFA_TOKEN

```

## Bonus: Launch Kubernetes in Docker

```bash {"excludeFromRunAll":"true","id":"01J9CGCF9R0EWGHNN32BMZCGZY","name":"task-run-kubernetes","tag":"tind"}
cd ..
task kubernetes

```
Empty file removed taggable_resources.json
Empty file.

0 comments on commit 8a1dfd5

Please sign in to comment.