Skip to content
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

Describe VPS with addons #36

Open
zoispag opened this issue Sep 18, 2020 · 3 comments
Open

Describe VPS with addons #36

zoispag opened this issue Sep 18, 2020 · 3 comments

Comments

@zoispag
Copy link

zoispag commented Sep 18, 2020

Hi,

I am importing my TransIP infrastructure into Terraform state, and I have a few VPSes that have added addons (extra RAM). Is it possible to describe these? I couldn't find any resources related to addons.

@aequitas
Copy link
Owner

Currently that's not supported. But this could be added. Can't promise when. But feel free to submit a PR if you want to give it a go yourself.

@zoispag
Copy link
Author

zoispag commented Sep 18, 2020

I haven't done this before, but I can certainly try. Any direction?
Should it be separate resource or part of transip_vps resource?
Not sure what the consequences are in terms of talking with TransIP api or using the state when declared as part of the main resource.

@aequitas
Copy link
Owner

I think this can just be a list on the vps resource with addon names. As the addons have no further configuration.

resource "transip_vps" "test" {
  description = "example"
  product_name = "vps-bladevps-x1"
  operating_system = "ubuntu-18.04"
  addons = [
    "vps-addon-1-extra-ip-address"
  ]
}

We'll have to make extra API calls to fill this, but this should be no issue I think.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants