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

Add resource ec_snapshot_repository #608

Closed
pascal-hofmann opened this issue Mar 23, 2023 · 2 comments
Closed

Add resource ec_snapshot_repository #608

pascal-hofmann opened this issue Mar 23, 2023 · 2 comments
Labels
enhancement New feature or request

Comments

@pascal-hofmann
Copy link
Contributor

pascal-hofmann commented Mar 23, 2023

Overview

There is currently no way to create snapshot repositories via terraform.

Possible Implementation

The ECE UI currently only shows fields for S3 and has an advanced edit for other types. To get a working MVP I think it makes sense to only add S3 for now and add the rest as the need arises.

resource "ec_snapshot_repository" "this" {
  name = "my-snapshot-repository" 
  s3 = {
    region     = "eu-central-1",
    bucket     = "my-bucket",
    access_key = "my-access-key",
    secret_key = "my-secret-key"
  }
}

Testing

  • Create snapshot repository.
  • Change snapshot repository and verify it was changed.
  • Delete snapshot repository.

Your Environment

ECE 3.5.1

API documentation

Related links

Screenshots

Bildschirm­foto 2023-03-23 um 08 42 09
Bildschirm­foto 2023-03-23 um 08 42 57

@pascal-hofmann pascal-hofmann added the enhancement New feature or request label Mar 23, 2023
@pascal-hofmann
Copy link
Contributor Author

pascal-hofmann commented Mar 24, 2023

@Kushmaro I want to work on this and #602. Can you please extend my trial (org ID 4184822784) so I can create acceptance tests?

As both are things which are available in the ECE UI I do think they also should be part of the provider.

@Kushmaro
Copy link
Collaborator

Kushmaro commented Mar 24, 2023

@pascal-hofmann , this specific functionality is blocked for ESS customers, its only available against ECE, as the permission / role required for doing this on ECE is admin-leveled. ESS users do not have this permission.

Generally, I'm fine with adding this capability as ECE-only functionality.

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

No branches or pull requests

3 participants