Skip to content
This repository has been archived by the owner on Jan 25, 2023. It is now read-only.

Fix missing snapshot id in ebs devices in nomad cluster #64

Merged
merged 1 commit into from
May 18, 2020

Conversation

pp23
Copy link
Contributor

@pp23 pp23 commented Apr 14, 2020

If the volume_size is 0 then we assume that a snapshotid is available and use that one instead.
AWS requires either a volume size or a snapshotid.
It seems that Terraform filters a volume size of 0 out of the request to AWS.

#63

@pp23 pp23 requested review from Etiene and robmorgan as code owners April 14, 2020 13:26
@hashicorp-cla
Copy link

hashicorp-cla commented Apr 14, 2020

CLA assistant check
All committers have signed the CLA.

Copy link
Collaborator

@brikis98 brikis98 left a comment

Choose a reason for hiding this comment

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

Thanks for the PR!

modules/nomad-cluster/main.tf Outdated Show resolved Hide resolved
@pp23 pp23 force-pushed the fix/ebs_config branch from 9f395cb to 08aaa4d Compare May 11, 2020 07:29
@pp23 pp23 requested a review from brikis98 May 11, 2020 07:47
If the volume_size is 0 then we assume that a snapshotid is available and use that one instead.
AWS requires either a volume size or a snapshotid.
It seems that Terraform filters a volume size of 0 out of the request to AWS.
@pp23 pp23 force-pushed the fix/ebs_config branch from 08aaa4d to 8e60b0c Compare May 18, 2020 06:40
@pp23 pp23 requested a review from brikis98 May 18, 2020 06:40
Copy link
Collaborator

@brikis98 brikis98 left a comment

Choose a reason for hiding this comment

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

Thanks! I'll kick off tests now.

@brikis98
Copy link
Collaborator

One test failed due to a timing / transient issue in the test code that is unrelated to this PR. Merging now, thanks!

@brikis98 brikis98 merged commit ebb260b into hashicorp:master May 18, 2020
@brikis98
Copy link
Collaborator

@pp23 pp23 deleted the fix/ebs_config branch June 1, 2020 11:14
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.

3 participants