I am using the script as is with all resources creating in us-east-1. The script is failing for EKS-With-Worker-Nodes with below error. Know how to resolve this ?
Error: error creating EKS Cluster (devopsthehardway-cluster): InvalidParameterException: The subnet ID 'subnet-0df1b2a9355054a37' does not exist (Service: AmazonEC2; Status Code: 400; Error Code: InvalidSubnetID.NotFound; Request ID: d74eea6b-fe44-4a72-a981-9b9dd4925902; Proxy: null)
│ {
│ RespMetadata: {
│ StatusCode: 400,
│ RequestID: "942555e2-ecea-410a-af02-39fa33aefa90"
│ },
│ ClusterName: "devopsthehardway-cluster",
│ Message_: "The subnet ID 'subnet-0df1b2a9355054a37' does not exist (Service: AmazonEC2; Status Code: 400; Error Code: InvalidSubnetID.NotFound; Request ID: d74eea6b-fe44-4a72-a981-9b9dd4925902; Proxy: null)"
│ }
│
│ with aws_eks_cluster.devopsthehardway-eks,
│ on main.tf line 49, in resource "aws_eks_cluster" "devopsthehardway-eks":
│ 49: resource "aws_eks_cluster" "devopsthehardway-eks" {
I am using the script as is with all resources creating in us-east-1. The script is failing for EKS-With-Worker-Nodes with below error. Know how to resolve this ?
Error: error creating EKS Cluster (devopsthehardway-cluster): InvalidParameterException: The subnet ID 'subnet-0df1b2a9355054a37' does not exist (Service: AmazonEC2; Status Code: 400; Error Code: InvalidSubnetID.NotFound; Request ID: d74eea6b-fe44-4a72-a981-9b9dd4925902; Proxy: null)
│ {
│ RespMetadata: {
│ StatusCode: 400,
│ RequestID: "942555e2-ecea-410a-af02-39fa33aefa90"
│ },
│ ClusterName: "devopsthehardway-cluster",
│ Message_: "The subnet ID 'subnet-0df1b2a9355054a37' does not exist (Service: AmazonEC2; Status Code: 400; Error Code: InvalidSubnetID.NotFound; Request ID: d74eea6b-fe44-4a72-a981-9b9dd4925902; Proxy: null)"
│ }
│
│ with aws_eks_cluster.devopsthehardway-eks,
│ on main.tf line 49, in resource "aws_eks_cluster" "devopsthehardway-eks":
│ 49: resource "aws_eks_cluster" "devopsthehardway-eks" {