crossplane-contrib / provider-jet-aws

AWS Provider for Crossplane that is built with Terrajet.
https://crossplane.io
Apache License 2.0
37 stars 30 forks source link

Sample ProviderConfig to use direclty. #111

Open luebken opened 2 years ago

luebken commented 2 years ago

What problem are you facing?

When I'm installing the providerconfig I keep running into the problem of using the wrong APIVersion:apiVersion: aws.crossplane.io/v1beta1 instead of apiVersion: aws.tf.crossplane.io/v1alpha1

How could Crossplane help solve your problem?

Provide a sample providerconfig similar to https://raw.githubusercontent.com/crossplane/crossplane/release-1.4/docs/snippets/configure/aws/providerconfig.yaml

turkenh commented 2 years ago

@luebken indeed we already have an example here: https://github.com/crossplane-contrib/provider-tf-aws/blob/main/examples/tfaws/providerconfig.yaml Just in case you're not aware.

luebken commented 2 years ago

I was not. Perfect thanks.

luebken commented 2 years ago

Actually, I was looking for a ProviderConfig with without the Secret so I can use it directly with kubectl apply -f URL

haarchri commented 2 years ago

is this still relevant ? so we can simply add the following manifest like classic provider-aws

---
apiVersion: aws.jet.crossplane.io/v1alpha1
kind: ProviderConfig
metadata:
  name: example
spec:
  credentials:
    source: None
apmartins85 commented 2 years ago

trying to help .. controllerConfig

piVersion: pkg.crossplane.io/v1alpha1
kind: ControllerConfig
metadata:
  annotations:
    eks.amazonaws.com/role-arn: arn:aws:iam::accountId:role/crossplane-role
  name: terrajet-config
spec:
  podSecurityContext:
    fsGroup: 2000

provider

apiVersion: pkg.crossplane.io/v1
kind: Provider
metadata:
  annotations:
  name: provider-jet
spec:
  controllerConfigRef:
    name: terrajet-config

providerConfig

 apiVersion: aws.jet.crossplane.io/v1alpha1
kind: ProviderConfig
metadata:
  name: provider-jet
spec:
  credentials:
    source: InjectedIdentity