Thanks @apparentlymart for giving some time for these issue.
I made the changes what you have suggested for provisioner_script added as part of trigger and executed terraform apply,
I ended with below error stack for missing map elements during terraform apply.
module.k8s_cluster_config.module.k8s_pod_security_policy.null_resource.kubernetes_manifest: Destroying... [id=2405609833578210128]
module.ingress.module.wildcard-domain-certificate.module.k8s_manifest_domain_wildcard.null_resource.kubernetes_manifest: Destroying... [id=5436481900513299472]
module.ingress.module.letsencrypt_issuers.null_resource.kubernetes_manifest: Destroying... [id=4850161818305540654]
module.ingress.module.wildcard-subdomain-certificate.module.k8s_manifest_domain_wildcard.null_resource.kubernetes_manifest: Destroying... [id=5380427471652883408]
module.k8s_cluster_config.module.k8s_pod_network_policies.null_resource.kubernetes_manifest: Destroying... [id=4324758910590133644]
module.cluster.module.eks.aws_launch_configuration.workers[0]: Creating...
module.cluster.module.eks.aws_launch_template.workers_launch_template[0]: Modifying... [id=lt-0b69f750ce74b89c2]
module.cluster.module.eks.aws_launch_template.workers_launch_template[0]: Modifications complete after 1s [id=lt-0b69f750ce74b89c2]
module.cluster.module.eks.aws_launch_configuration.workers[0]: Creation complete after 1s [id=digitalstudio-test-digitalstudio-test-on-demand20210324091355420800000002]
module.cluster.module.eks.random_pet.workers[0]: Creating...
module.cluster.module.eks.random_pet.workers[0]: Creation complete after 0s [id=glorious-guinea]
module.cluster.module.eks.aws_autoscaling_group.workers[0]: Modifying... [id=test-on-demand20200417144914313900000014]
module.cluster.module.eks.aws_autoscaling_group.workers[0]: Modifications complete after 1s [id=test-on-demand20200417144914313900000014]
module.cluster.module.eks.random_pet.workers[0]: Destroying... [id=immense-ladybird]
module.cluster.module.eks.random_pet.workers[0]: Destruction complete after 0s
module.cluster.module.eks.aws_launch_configuration.workers[0]: Destroying... [id=test-on-demand20210310154458863900000003]
module.cluster.module.eks.aws_launch_configuration.workers[0]: Destruction complete after 0s
Error: Missing map element: This map does not have an element with the key "provisioner_script".
Error: Missing map element: This map does not have an element with the key "provisioner_script".
Error: Missing map element: This map does not have an element with the key "provisioner_script".
Error: Missing map element: This map does not have an element with the key "provisioner_script".
Error: Missing map element: This map does not have an element with the key "provisioner_script".
Error: Provider produced inconsistent final plan
When expanding the plan for
module.cluster.module.eks.random_pet.workers_launch_template[0] to include new
values learned so far during apply, provider
"registry.terraform.io/hashicorp/random" changed the planned action from
CreateThenDelete to DeleteThenCreate.
Providers dependency as part of state
terraform providers
Providers required by configuration:
.
├── provider[registry.terraform.io/carlpett/sops] ~> 0.5
├── provider[registry.terraform.io/hashicorp/aws]
├── provider[registry.terraform.io/hashicorp/helm] 1.3.0
├── provider[registry.terraform.io/hashicorp/kubernetes] 1.13.1
├── module.cluster
│ ├── provider[registry.terraform.io/hashicorp/aws]
│ ├── provider[registry.terraform.io/hashicorp/external]
│ ├── provider[registry.terraform.io/hashicorp/kubernetes]
│ ├── module.eks
│ │ ├── provider[registry.terraform.io/hashicorp/random] >= 2.1.*
│ │ ├── provider[registry.terraform.io/hashicorp/kubernetes] >= 1.11.1
│ │ ├── provider[registry.terraform.io/hashicorp/aws] >= 2.52.0
│ │ ├── provider[registry.terraform.io/hashicorp/local] >= 1.4.*
│ │ ├── provider[registry.terraform.io/hashicorp/null] >= 2.1.*
│ │ └── module.node_groups
│ │ ├── provider[registry.terraform.io/hashicorp/aws]
│ │ └── provider[registry.terraform.io/hashicorp/random]
│ └── module.vpc
│ └── provider[registry.terraform.io/hashicorp/aws] >= 2.70.*
├── module.ingress
│ ├── provider[registry.terraform.io/hashicorp/aws]
│ ├── provider[registry.terraform.io/hashicorp/helm]
│ ├── provider[registry.terraform.io/hashicorp/kubernetes]
│ ├── provider[registry.terraform.io/hashicorp/random]
│ ├── module.wildcard-domain-certificate
│ └── module.k8s_manifest_domain_wildcard
│ └── provider[registry.terraform.io/hashicorp/null]
│ ├── module.wildcard-subdomain-certificate
│ └── module.k8s_manifest_domain_wildcard
│ └── provider[registry.terraform.io/hashicorp/null]
│ └── module.letsencrypt_issuers
│ └── provider[registry.terraform.io/hashicorp/null]
├── module.k8s_cluster_config
│ ├── module.k8s_pod_network_policies
│ └── provider[registry.terraform.io/hashicorp/null]
│ └── module.k8s_pod_security_policy
│ └── provider[registry.terraform.io/hashicorp/null]
├── module.kubed
│ ├── provider[registry.terraform.io/hashicorp/helm]
│ └── provider[registry.terraform.io/hashicorp/kubernetes]
├── module.monitoring
│ ├── provider[registry.terraform.io/hashicorp/aws]
│ ├── provider[registry.terraform.io/hashicorp/helm]
│ └── provider[registry.terraform.io/hashicorp/kubernetes]
└── module.aws-services
├── provider[registry.terraform.io/hashicorp/kubernetes]
├── provider[registry.terraform.io/hashicorp/helm]
└── provider[registry.terraform.io/hashicorp/aws]
Providers required by state:
provider[registry.terraform.io/hashicorp/aws]
provider[registry.terraform.io/hashicorp/external]
provider[registry.terraform.io/hashicorp/helm]
provider[registry.terraform.io/hashicorp/kubernetes]
provider[registry.terraform.io/hashicorp/null]
provider[registry.terraform.io/hashicorp/random]
Being rookie , I am not sure how to fix these issue.
Thanks for your help !