Skip to content
This repository has been archived by the owner on Jun 29, 2022. It is now read-only.

Remove Deprecated CoreOS from AWS terraform #1245

Merged
merged 5 commits into from
Dec 9, 2020
Merged

Remove Deprecated CoreOS from AWS terraform #1245

merged 5 commits into from
Dec 9, 2020

Conversation

karlskewes
Copy link
Contributor

closes #1202

@knrt10
Copy link
Member

knrt10 commented Dec 7, 2020

@kskewes thanks for the PR, would you mind rebasing the PR from the master, that might fix the CI test which was fixed by #1242

Copy link
Member

@invidian invidian left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Before we close #1202, must also resolve warnings in aws/flatcar-linux/kubernetes/workers/ami.tf.

@karlskewes karlskewes changed the title Update TF0.11 syntax to 0.12+ and terraform fmt Remove Deprecated CoreOS from AWS terraform Dec 7, 2020
@invidian
Copy link
Member

invidian commented Dec 7, 2020

@kskewes please run make update-assets and commit generated changes. Thanks!

Copy link
Member

@invidian invidian left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tested it manually, as we currently don't have a CI process for outside contributions (#1247) and I got the following errors:

module.aws-l8e-mat.data.aws_ami.flatcar: Refreshing state...

Error: Incorrect attribute value type

  on ../terraform-modules/aws/flatcar-linux/kubernetes/controllers.tf line 88, in resource "aws_instance" "controllers":
  88:   ami                  = local.ami_id
    |----------------
    | local.ami_id is tuple with 1 element

Inappropriate value for attribute "ami": string required.


Error: Incorrect attribute value type

  on ../terraform-modules/aws/flatcar-linux/kubernetes/workers/workers.tf line 58, in resource "aws_launch_configuration" "worker":
  58:   image_id          = local.ami_id
    |----------------
    | local.ami_id is tuple with 1 element

Inappropriate value for attribute "image_id": string required.

FATA[0010] Applying cluster failed: applying platform: failed checking execution status: exit status 1  args="[]" command="lokoctl cluster apply"

@invidian
Copy link
Member

invidian commented Dec 8, 2020

Thanks @kskewes. I'll test this tomorrow.

Copy link
Member

@invidian invidian left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Member

@knrt10 knrt10 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thank you @kskewes for the work.

@invidian invidian merged commit 7562ed7 into kinvolk:master Dec 9, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fix "Warning: Interpolation-only expressions are deprecated" in Terraform
3 participants