-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: adding datasource to retrieve eks token #11
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Terraform planClick to see the plan[command]/home/runner/work/_temp/820229db-145d-4856-8589-e7091b2b5ff7/terraform-bin show -no-color plan.tmp
Note: Objects have changed outside of Terraform
Terraform detected the following changes made outside of Terraform since the
last "terraform apply" which may have affected this plan:
# module.eks.module.eks_managed_node_group["bottlerocket_default"].aws_eks_node_group.this[0] has changed
~ resource "aws_eks_node_group" "this" {
+ arn = "arn:aws:eks:us-east-1:322620855520:nodegroup/aws-eks-cluster/bottlerocket_default-20240502181925617500000019/6cc79d44-2d35-79e3-18f6-b39a2e732c2c"
id = "aws-eks-cluster:bottlerocket_default-20240502181925617500000019"
+ resources = [
+ {
+ autoscaling_groups = [
+ {
+ name = "eks-bottlerocket_default-20240502181925617500000019-6cc79d44-2d35-79e3-18f6-b39a2e732c2c"
},
]
# (1 unchanged attribute hidden)
},
]
+ status = "CREATE_FAILED"
tags = {
"Name" = "bottlerocket_default"
}
# (7 unchanged attributes hidden)
# (3 unchanged blocks hidden)
}
Unless you have made equivalent changes to your configuration, or ignored the
relevant attributes using ignore_changes, the following plan may include
actions to undo or respond to these changes.
─────────────────────────────────────────────────────────────────────────────
Terraform used the selected providers to generate the following execution
plan. Resource actions are indicated with the following symbols:
+ create
+/- create replacement and then destroy
Terraform will perform the following actions:
# module.aws-auth.kubernetes_config_map_v1_data.aws_auth[0] will be created
+ resource "kubernetes_config_map_v1_data" "aws_auth" {
+ data = {
+ "mapAccounts" = <<-EOT
- "322620855520"
EOT
+ "mapRoles" = jsonencode([])
+ "mapUsers" = <<-EOT
- "groups":
- "system:masters"
"userarn": "arn:aws:iam::322620855520:user/caio"
"username": "caio"
- "groups":
- "system:masters"
"userarn": "arn:aws:iam::322620855520:root"
"username": "root"
EOT
}
+ field_manager = "Terraform"
+ force = true
+ id = (known after apply)
+ metadata {
+ name = "aws-auth"
+ namespace = "kube-system"
}
}
# module.eks.aws_eks_addon.this["coredns"] will be created
+ resource "aws_eks_addon" "this" {
+ addon_name = "coredns"
+ addon_version = "v1.10.1-eksbuild.7"
+ arn = (known after apply)
+ cluster_name = "aws-eks-cluster"
+ configuration_values = (known after apply)
+ created_at = (known after apply)
+ id = (known after apply)
+ modified_at = (known after apply)
+ preserve = true
+ resolve_conflicts_on_create = "OVERWRITE"
+ resolve_conflicts_on_update = "OVERWRITE"
+ tags = {
+ "Name" = "aws-eks-cluster"
}
+ tags_all = {
+ "Name" = "aws-eks-cluster"
}
+ timeouts {}
}
# module.eks.aws_eks_addon.this["kube-proxy"] will be created
+ resource "aws_eks_addon" "this" {
+ addon_name = "kube-proxy"
+ addon_version = "v1.28.8-eksbuild.2"
+ arn = (known after apply)
+ cluster_name = "aws-eks-cluster"
+ configuration_values = (known after apply)
+ created_at = (known after apply)
+ id = (known after apply)
+ modified_at = (known after apply)
+ preserve = true
+ resolve_conflicts_on_create = "OVERWRITE"
+ resolve_conflicts_on_update = "OVERWRITE"
+ tags = {
+ "Name" = "aws-eks-cluster"
}
+ tags_all = {
+ "Name" = "aws-eks-cluster"
}
+ timeouts {}
}
# module.eks.module.eks_managed_node_group["bottlerocket_default"].aws_eks_node_group.this[0] is tainted, so must be replaced
+/- resource "aws_eks_node_group" "this" {
~ arn = "arn:aws:eks:us-east-1:322620855520:nodegroup/aws-eks-cluster/bottlerocket_default-20240502181925617500000019/6cc79d44-2d35-79e3-18f6-b39a2e732c2c" -> (known after apply)
~ capacity_type = "ON_DEMAND" -> (known after apply)
~ disk_size = 20 -> (known after apply)
~ id = "aws-eks-cluster:bottlerocket_default-20240502181925617500000019" -> (known after apply)
~ instance_types = [
- "t3.medium",
] -> (known after apply)
- labels = {} -> null
~ node_group_name = "bottlerocket_default-20240502181925617500000019" -> (known after apply)
~ release_version = "1.19.5-64049ba8" -> (known after apply)
~ resources = [
- {
- autoscaling_groups = [
- {
- name = "eks-bottlerocket_default-20240502181925617500000019-6cc79d44-2d35-79e3-18f6-b39a2e732c2c"
},
]
# (1 unchanged attribute hidden)
},
] -> (known after apply)
~ status = "CREATE_FAILED" -> (known after apply)
tags = {
"Name" = "bottlerocket_default"
}
# (7 unchanged attributes hidden)
~ update_config {
- max_unavailable = 0 -> null
# (1 unchanged attribute hidden)
}
# (2 unchanged blocks hidden)
}
Plan: 4 to add, 0 to change, 1 to destroy.
::debug::Terraform exited with code 0.
::debug::stdout: %0ANote: Objects have changed outside of Terraform%0A%0ATerraform detected the following changes made outside of Terraform since the%0Alast "terraform apply" which may have affected this plan:%0A%0A # module.eks.module.eks_managed_node_group["bottlerocket_default"].aws_eks_node_group.this[0] has changed%0A ~ resource "aws_eks_node_group" "this" {%0A + arn = "arn:aws:eks:us-east-1:322620855520:nodegroup/aws-eks-cluster/bottlerocket_default-20240502181925617500000019/6cc79d44-2d35-79e3-18f6-b39a2e732c2c"%0A id = "aws-eks-cluster:bottlerocket_default-20240502181925617500000019"%0A + resources = [%0A + {%0A + autoscaling_groups = [%0A + {%0A + name = "eks-bottlerocket_default-20240502181925617500000019-6cc79d44-2d35-79e3-18f6-b39a2e732c2c"%0A },%0A ]%0A # (1 unchanged attribute hidden)%0A },%0A ]%0A + status = "CREATE_FAILED"%0A tags = {%0A "Name" = "bottlerocket_default"%0A }%0A # (7 unchanged attributes hidden)%0A%0A # (3 unchanged blocks hidden)%0A }%0A%0A%0AUnless you have made equivalent changes to your configuration, or ignored the%0Arelevant attributes using ignore_changes, the following plan may include%0Aactions to undo or respond to these changes.%0A%0A─────────────────────────────────────────────────────────────────────────────%0A%0ATerraform used the selected providers to generate the following execution%0Aplan. Resource actions are indicated with the following symbols:%0A + create%0A+/- create replacement and then destroy%0A%0ATerraform will perform the following actions:%0A%0A # module.aws-auth.kubernetes_config_map_v1_data.aws_auth[0] will be created%0A + resource "kubernetes_config_map_v1_data" "aws_auth" {%0A + data = {%0A + "mapAccounts" = <<-EOT%0A - "322620855520"%0A EOT%0A + "mapRoles" = jsonencode([])%0A + "mapUsers" = <<-EOT%0A - "groups":%0A - "system:masters"%0A "userarn": "arn:aws:iam::322620855520:user/caio"%0A "username": "caio"%0A - "groups":%0A - "system:masters"%0A "userarn": "arn:aws:iam::322620855520:root"%0A "username": "root"%0A EOT%0A }%0A + field_manager = "Terraform"%0A + force = true%0A + id = (known after apply)%0A%0A + metadata {%0A + name = "aws-auth"%0A + namespace = "kube-system"%0A }%0A }%0A%0A # module.eks.aws_eks_addon.this["coredns"] will be created%0A + resource "aws_eks_addon" "this" {%0A + addon_name = "coredns"%0A + addon_version = "v1.10.1-eksbuild.7"%0A + arn = (known after apply)%0A + cluster_name = "aws-eks-cluster"%0A + configuration_values = (known after apply)%0A + created_at = (known after apply)%0A + id = (known after apply)%0A + modified_at = (known after apply)%0A + preserve = true%0A + resolve_conflicts_on_create = "OVERWRITE"%0A + resolve_conflicts_on_update = "OVERWRITE"%0A + tags = {%0A + "Name" = "aws-eks-cluster"%0A }%0A + tags_all = {%0A + "Name" = "aws-eks-cluster"%0A }%0A%0A + timeouts {}%0A }%0A%0A # module.eks.aws_eks_addon.this["kube-proxy"] will be created%0A + resource "aws_eks_addon" "this" {%0A + addon_name = "kube-proxy"%0A + addon_version = "v1.28.8-eksbuild.2"%0A + arn = (known after apply)%0A + cluster_name = "aws-eks-cluster"%0A + configuration_values = (known after apply)%0A + created_at = (known after apply)%0A + id = (known after apply)%0A + modified_at = (known after apply)%0A + preserve = true%0A + resolve_conflicts_on_create = "OVERWRITE"%0A + resolve_conflicts_on_update = "OVERWRITE"%0A + tags = {%0A + "Name" = "aws-eks-cluster"%0A }%0A + tags_all = {%0A + "Name" = "aws-eks-cluster"%0A }%0A%0A + timeouts {}%0A }%0A%0A # module.eks.module.eks_managed_node_group["bottlerocket_default"].aws_eks_node_group.this[0] is tainted, so must be replaced%0A+/- resource "aws_eks_node_group" "this" {%0A ~ arn = "arn:aws:eks:us-east-1:322620855520:nodegroup/aws-eks-cluster/bottlerocket_default-20240502181925617500000019/6cc79d44-2d35-79e3-18f6-b39a2e732c2c" -> (known after apply)%0A ~ capacity_type = "ON_DEMAND" -> (known after apply)%0A ~ disk_size = 20 -> (known after apply)%0A ~ id = "aws-eks-cluster:bottlerocket_default-20240502181925617500000019" -> (known after apply)%0A ~ instance_types = [%0A - "t3.medium",%0A ] -> (known after apply)%0A - labels = {} -> null%0A ~ node_group_name = "bottlerocket_default-20240502181925617500000019" -> (known after apply)%0A ~ release_version = "1.19.5-64049ba8" -> (known after apply)%0A ~ resources = [%0A - {%0A - autoscaling_groups = [%0A - {%0A - name = "eks-bottlerocket_default-20240502181925617500000019-6cc79d44-2d35-79e3-18f6-b39a2e732c2c"%0A },%0A ]%0A # (1 unchanged attribute hidden)%0A },%0A ] -> (known after apply)%0A ~ status = "CREATE_FAILED" -> (known after apply)%0A tags = {%0A "Name" = "bottlerocket_default"%0A }%0A # (7 unchanged attributes hidden)%0A%0A ~ update_config {%0A - max_unavailable = 0 -> null%0A # (1 unchanged attribute hidden)%0A }%0A%0A # (2 unchanged blocks hidden)%0A }%0A%0APlan: 4 to add, 0 to change, 1 to destroy.%0A
::debug::stderr:
::debug::exitcode: 0
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
No description provided.