Skip to content

Conversation

@punkwalker
Copy link
Contributor

WIP: Improved version of CNOE AWS Reference Implementation

  • New directory structure
  • Leverages ArgoCD Application Sets
  • Deploy the IDP to a remote EKS cluster from a kind cluster (ie. idpbuilder)

Fixes: #49

punkwalker added 30 commits June 3, 2025 17:17
Signed-off-by: Pankaj Walke <[email protected]>
Signed-off-by: Pankaj Walke <[email protected]>
Signed-off-by: Pankaj Walke <[email protected]>
Signed-off-by: Pankaj Walke <[email protected]>
Signed-off-by: Pankaj Walke <[email protected]>
Signed-off-by: Pankaj Walke <[email protected]>
Signed-off-by: Pankaj Walke <[email protected]>
Signed-off-by: Pankaj Walke <[email protected]>
Signed-off-by: Pankaj Walke <[email protected]>
Signed-off-by: Pankaj Walke <[email protected]>
Signed-off-by: Pankaj Walke <[email protected]>
Signed-off-by: Pankaj Walke <[email protected]>
Signed-off-by: Pankaj Walke <[email protected]>
Signed-off-by: Pankaj Walke <[email protected]>
Signed-off-by: Pankaj Walke <[email protected]>
Signed-off-by: Pankaj Walke <[email protected]>
@csantanapr
Copy link
Contributor

Runnig the setup here https://github.com/cnoe-punkwalker/reference-implementation-aws/tree/ref-impl-v2/cluster/eksctl#create-crossplane-permissions-boundary-policy

I get the following error in macos

TEMPFILE=$(mktemp)
cat $REPO_ROOT/cluster/iam-policies/crossplane-permissions-boundry.json | envsubst > "$TEMPFILE"

# Create the permissions boundary policy
cat $REPO_ROOT/cluster/iam-policies/crossplane-permissions-boundry.json | envsubst | \                                           
aws iam create-policy \
  --policy-name crossplane-permissions-boundary \
  --policy-document file:///"$TEMPFILE"

# Capture the policy ARN
export CROSSPLANE_BOUNDARY_POLICY_ARN=$(aws iam get-policy \
  --policy-arn arn:aws:iam::${AWS_ACCOUNT_ID}:policy/crossplane-permissions-boundary \
  --query 'Policy.Arn' --output text)

zsh: no such file or directory: /opt/homebrew/Cellar/gettext/0.22.5/bin/envsubst
zsh: no such file or directory: /opt/homebrew/Cellar/gettext/0.22.5/bin/envsubst
zsh: command not found:

Parameter validation failed:
Invalid length for parameter PolicyDocument, value: 0, valid min length: 1

@punkwalker
Copy link
Contributor Author

Runnig the setup here https://github.com/cnoe-punkwalker/reference-implementation-aws/tree/ref-impl-v2/cluster/eksctl#create-crossplane-permissions-boundary-policy

I get the following error in macos

TEMPFILE=$(mktemp)
cat $REPO_ROOT/cluster/iam-policies/crossplane-permissions-boundry.json | envsubst > "$TEMPFILE"

# Create the permissions boundary policy
cat $REPO_ROOT/cluster/iam-policies/crossplane-permissions-boundry.json | envsubst | \                                           
aws iam create-policy \
  --policy-name crossplane-permissions-boundary \
  --policy-document file:///"$TEMPFILE"

# Capture the policy ARN
export CROSSPLANE_BOUNDARY_POLICY_ARN=$(aws iam get-policy \
  --policy-arn arn:aws:iam::${AWS_ACCOUNT_ID}:policy/crossplane-permissions-boundary \
  --query 'Policy.Arn' --output text)

zsh: no such file or directory: /opt/homebrew/Cellar/gettext/0.22.5/bin/envsubst zsh: no such file or directory: /opt/homebrew/Cellar/gettext/0.22.5/bin/envsubst zsh: command not found:

Parameter validation failed: Invalid length for parameter PolicyDocument, value: 0, valid min length: 1

Looks like we have to use different approach than ensubst?

csantanapr and others added 22 commits July 21, 2025 14:54
Signed-off-by: Carlos Santana <[email protected]>
Signed-off-by: Carlos Santana <[email protected]>
* remove set -x

Signed-off-by: Carlos Santana <[email protected]>

* config.yaml generic

* exclt uninstall command with AWS_REGION

Signed-off-by: Carlos Santana <[email protected]>

---------

Signed-off-by: Carlos Santana <[email protected]>
Signed-off-by: Pankaj Walke <[email protected]>
Signed-off-by: Pankaj Walke <[email protected]>
Signed-off-by: Pankaj Walke <[email protected]>
Signed-off-by: Pankaj Walke <[email protected]>
Signed-off-by: Pankaj Walke <[email protected]>
Signed-off-by: Pankaj Walke <[email protected]>
Signed-off-by: Pankaj Walke <[email protected]>
Signed-off-by: Pankaj Walke <[email protected]>
@punkwalker punkwalker changed the title WIP: Improved version of CNOE AWS Reference Implementation Improved version of CNOE AWS Reference Implementation Jul 25, 2025
@punkwalker punkwalker self-assigned this Jul 25, 2025
@punkwalker punkwalker marked this pull request as ready for review July 25, 2025 01:08
Copy link
Contributor

@csantanapr csantanapr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome job @punkwalker 🎉

@csantanapr csantanapr merged commit 8bbd074 into cnoe-io:main Jul 25, 2025
1 check passed
@csantanapr
Copy link
Contributor

Going to merge this mega PR, we can continue to do improvements via normal Issues and PRs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Design Proposal: New CNOE AWS Reference Implementation

4 participants