From c3edbddce8a4d8686fda53dbc28daa8fe0a3e71a Mon Sep 17 00:00:00 2001 From: David Landry Date: Mon, 3 Mar 2025 12:53:11 -0500 Subject: [PATCH] chore(crossplane): test cognito in crossplane --- bootstrap/crossplane/helm-values.yaml | 2 ++ bootstrap/crossplane/kustomization.yaml | 1 + .../crossplane/providerconfig.cognito.yaml | 17 +++++++++++++++++ 3 files changed, 20 insertions(+) create mode 100644 bootstrap/crossplane/providerconfig.cognito.yaml diff --git a/bootstrap/crossplane/helm-values.yaml b/bootstrap/crossplane/helm-values.yaml index fc1f679..4ddc290 100644 --- a/bootstrap/crossplane/helm-values.yaml +++ b/bootstrap/crossplane/helm-values.yaml @@ -56,6 +56,8 @@ provider: # -- A list of Provider packages to install. packages: # - ghcr.io/crossplane-contrib/provider-aws-iam:v1.20.1 + - ghcr.io/crossplane-contrib/provider-aws-cognitoidentity:v1.20.1 + - ghcr.io/crossplane-contrib/provider-aws-cognitoidp:v1.20.1 - ghcr.io/crossplane-contrib/provider-aws-route53:v1.20.1 - ghcr.io/crossplane-contrib/provider-aws-s3:v1.20.1 diff --git a/bootstrap/crossplane/kustomization.yaml b/bootstrap/crossplane/kustomization.yaml index 3f78f1c..4f1a95d 100644 --- a/bootstrap/crossplane/kustomization.yaml +++ b/bootstrap/crossplane/kustomization.yaml @@ -12,6 +12,7 @@ helmCharts: resources: - ns.yaml - providerconfig.default.yaml + - providerconfig.cognito.yaml - providerconfig.route53.yaml - providerconfig.s3.yaml diff --git a/bootstrap/crossplane/providerconfig.cognito.yaml b/bootstrap/crossplane/providerconfig.cognito.yaml new file mode 100644 index 0000000..719641f --- /dev/null +++ b/bootstrap/crossplane/providerconfig.cognito.yaml @@ -0,0 +1,17 @@ +apiVersion: aws.upbound.io/v1beta1 +kind: ProviderConfig +metadata: + name: cognito + annotations: + argocd.argoproj.io/sync-options: SkipDryRunOnMissingResource=true +spec: + assumeRoleChain: + - roleARN: "arn:aws:iam::000654387266:role/CrossplaneServiceRole" + - roleARN: "arn:aws:iam::000654387266:role/CognitoManagementRole" + + credentials: + source: Secret + secretRef: + namespace: crossplane-system + name: aws-secret + key: creds