equinix-labs/terraform-equinix-metal-eks-anywhere

Issues with metal gateway access

Opened this issue ยท 0 comments

When i did a terraform apply the machines and cluster were created but the command failed with

module.eksa.null_resource.create_cluster (remote-exec): ๐ŸŽ‰ Cluster created!
module.eksa.null_resource.create_cluster (remote-exec): --------------------------------------------------------------------------------------
module.eksa.null_resource.create_cluster (remote-exec): The Amazon EKS Anywhere Curated Packages are only available to customers with the
module.eksa.null_resource.create_cluster (remote-exec): Amazon EKS Anywhere Enterprise Subscription
module.eksa.null_resource.create_cluster (remote-exec): --------------------------------------------------------------------------------------
module.eksa.null_resource.create_cluster (remote-exec): Installing curated packages controller on management cluster
module.eksa.null_resource.create_cluster (remote-exec): Installing helm chart on cluster	{"chart": "eks-anywhere-packages", "version": "0.2.7-eks-a-17"}
module.eksa.null_resource.create_cluster (remote-exec): Warning: No AWS key/license provided. Please be aware this will prevent the package controller from installing curated packages.
module.eksa.null_resource.create_cluster (remote-exec): job.batch/eksa-auth-refresher created
module.eksa.null_resource.create_cluster: Creation complete after 16m28s [id=7371148963039318514]
โ•ท
โ”‚ Error: GET https://api.equinix.com/metal/v1/metal-gateways/178685c6-f097-4873-b485-4c2ae1f98725?include=project%2Cip_reservation%2Cvirtual_network%2Cvrf: 403 Access denied for the current authentication token
โ”‚
โ”‚   with module.eksa.equinix_metal_gateway.gw,
โ”‚   on ../../main.tf line 19, in resource "equinix_metal_gateway" "gw":
โ”‚   19: resource "equinix_metal_gateway" "gw" {
โ”‚
โ•ต

When I did a terraform destroy the command failed with

โ•ท
โ”‚ Error: GET https://api.equinix.com/metal/v1/metal-gateways/178685c6-f097-4873-b485-4c2ae1f98725?include=project%2Cip_reservation%2Cvirtual_network%2Cvrf: 403 Access denied for the current authentication token
โ”‚
โ”‚   with module.eksa.equinix_metal_gateway.gw,
โ”‚   on ../../main.tf line 19, in resource "equinix_metal_gateway" "gw":
โ”‚   19: resource "equinix_metal_gateway" "gw" {
โ”‚
โ•ต

I had to manually delete all resources.