A modern, secure Crossplane provider that enables you to manage Terraform resources using native Kubernetes APIs.
kubectl crossplane install provider xpkg.upbound.io/mgeorge67701/provider-crossplane-terraform:v3.2.0
apiVersion: terraform.crossplane.io/v1alpha1
kind: Terraform
metadata:
name: my-s3-bucket
spec:
forProvider:
configuration: |
terraform {
required_providers {
aws = {
source = "hashicorp/aws"
version = "~> 5.0"
}
}
}
resource "aws_s3_bucket" "example" {
bucket = var.bucket_name
}
variables:
bucket_name: "my-crossplane-bucket"
backend:
type: "s3"
configuration:
bucket: "my-terraform-state"
key: "terraform.tfstate"
region: "us-west-2"
providerConfigRef:
name: default
Create a ProviderConfig:
apiVersion: terraform.crossplane.io/v1alpha1
kind: ProviderConfig
metadata:
name: default
spec:
credentials:
source: Secret
secretRef:
namespace: crossplane-system
name: terraform-creds
key: credentials
For complete documentation, examples, and CI/CD setup, visit: GitHub Repository
Built with ❤️ for the Crossplane community