diff --git a/README.md b/README.md index 25436fd..af1e8ac 100644 --- a/README.md +++ b/README.md @@ -30,3 +30,7 @@ module "castai-eks-iam-role" { aws_cluster_name = var.aws_cluster_name } ``` + +# Examples + +Usage examples are located in [terraform provider repo](https://github.com/castai/terraform-provider-castai/tree/master/examples/eks) diff --git a/examples/assume_role/main.tf b/examples/assume_role/main.tf deleted file mode 100644 index 88615f0..0000000 --- a/examples/assume_role/main.tf +++ /dev/null @@ -1,26 +0,0 @@ -provider "castai" { - api_token = var.castai_api_token -} - -provider "aws" { - region = var.aws_cluster_region - access_key = var.aws_access_key_id - secret_key = var.aws_secret_access_key -} - -resource "castai_aws_user_arn" "cast_user" { - account_id = var.aws_account_id - region = var.aws_cluster_region - cluster_name = var.aws_cluster_name -} - -module "castai-aws-iam" { - source = "../../" - - aws_account_id = var.aws_account_id - aws_cluster_vpc_id = var.aws_vpc_id - aws_cluster_region = var.aws_cluster_region - aws_cluster_name = var.aws_cluster_name - - create_iam_resources_per_cluster = true -} diff --git a/examples/assume_role/outputs.tf b/examples/assume_role/outputs.tf deleted file mode 100644 index 1bcf826..0000000 --- a/examples/assume_role/outputs.tf +++ /dev/null @@ -1,7 +0,0 @@ -output "role_arn" { - value = module.castai-aws-iam.user_arn -} - -output "instance_profile_arn" { - value = module.castai-aws-iam.instance_profile_arn -} diff --git a/examples/assume_role/variables.tf b/examples/assume_role/variables.tf deleted file mode 100644 index eb05087..0000000 --- a/examples/assume_role/variables.tf +++ /dev/null @@ -1,28 +0,0 @@ -variable "castai_api_token" { - type = string -} - -variable "aws_account_id" { - type = string -} - -variable "aws_vpc_id" { - type = string -} - -variable "aws_access_key_id" { - type = string -} - -variable "aws_secret_access_key" { - type = string -} - -variable "aws_cluster_region" { - type = string -} - -variable "aws_cluster_name" { - type = string -} - diff --git a/examples/assume_role/versions.tf b/examples/assume_role/versions.tf deleted file mode 100644 index 3482706..0000000 --- a/examples/assume_role/versions.tf +++ /dev/null @@ -1,13 +0,0 @@ -terraform { - required_providers { - castai = { - source = "castai/castai" - version = ">= 0.8.1" - } - aws = { - source = "hashicorp/aws" - version = ">= 2.49" - } - } - required_version = ">= 0.13" -}