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

@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
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.
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