Git Product home page Git Product logo

terraform-provider-nginxproxymanager's Introduction

Hi there, I'm Sander ๐Ÿ‘‹๐Ÿผ

namespace SanderJochems;

public class About : Me
{
    public string Pronouns = "He/Him";
    
    public string Title = "Cloud & Software Engineer";
    
    public string Location = "Eindhoven, Netherlands";
}

๐Ÿค“ Programming Languages

  • C#
  • Java
  • PHP
  • C++
  • JavaScript
  • Python
  • Go

๐Ÿ”ง Tools

  • Docker
  • Git
  • Firebase
  • Microsoft Azure
  • AWS

๐Ÿซ Educations

  • Information Technology - Avans (2020-2023)
  • Computer Software - Summa College (2017-2020)

Projects made during my educations are stored in Sander0542-School

๐Ÿ Stats

Show

Sander0542 GitHub Stats

Top Languages

terraform-provider-nginxproxymanager's People

Contributors

dependabot[bot] avatar sander0542 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

terraform-provider-nginxproxymanager's Issues

Meta data deleted on each plan/apply

First, thank you very much for this amazing work, I appreciate it a lot.

I have dns_challenge on all my hosts, this setting is read-only and I can't configure it before the first plan/apply, ok, no problem I will do that after, manually, so... next, in each plan/apply, this "meta" data is deleted.

This is the output when I try to plan each change, making this provider unusable when you have dns_challenge configured:

Terraform used the selected providers to generate the following execution plan. Resource actions are indicated with the following symbols:
  ~ update in-place

Terraform will perform the following actions:

  # nginxproxymanager_proxy_host.fog will be updated in-place
  ~ resource "nginxproxymanager_proxy_host" "fog" {
      ~ forward_host            = "xxx.xxx.xxx.114" -> "xxx.xxx.xxx.14"
        id                      = 56
      ~ meta                    = {
          - "dns_challenge"            = "true"
          - "dns_provider"             = "\"route53\""
          - "dns_provider_credentials" = "\"[default]\\r\\naws_access_key_id=*****redacted******\\r\\naws_secret_access_key=**********redacted**********\""
          - "letsencrypt_agree"        = "true"
          - "letsencrypt_email"        = "\"*****redacted*****@**********.com\""
          - "nginx_err"                = "null"
          - "nginx_online"             = "true"
        } -> (known after apply)
      ~ modified_on             = "2024-02-29T17:07:43.000Z" -> (known after apply)
        # (15 unchanged attributes hidden)
    }

Plan: 0 to add, 1 to change, 0 to destroy.

Obviously, when I try to configure it, I can't, the output is: "Cannot set value for this attribute as the provider has marked it as read-only. Remove the configuration line setting the value."

The question is, is there a way to tell to the provider do not touch this data, or is it really not read-only?
Please, if this a well known fact and there is no way to solve it, it'll a good idea to put a brief note advertising this behavior.

Thanks in advance.

Value Conversion Error with Data Source `nginxproxymanager_proxy_hosts`

Nice provider. It looks like it will be really useful for homelab automation.

Ran into an error when trying to dump a list of the proxy hosts I created in the UI with the following code:

data "nginxproxymanager_proxy_hosts" "all" {}

output "proxy_hosts" {
  value = data.nginxproxymanager_proxy_hosts.all.proxy_hosts
}

Returns the following error when executing terraform plan

data.nginxproxymanager_proxy_hosts.all: Reading...

Planning failed. Terraform encountered an error while generating this plan.

โ•ท
โ”‚ Error: Value Conversion Error
โ”‚
โ”‚   with data.nginxproxymanager_proxy_hosts.all,
โ”‚   on main.tf line 19, in data "nginxproxymanager_proxy_hosts" "all":
โ”‚   19: data "nginxproxymanager_proxy_hosts" "all" {}
โ”‚
โ”‚ An unexpected error was encountered trying to convert from struct into an object. This is always an error
โ”‚ in the provider. Please report the following to the provider developer:
โ”‚
โ”‚ Mismatch between struct and object type: Struct defines fields not found in object: location. Object
โ”‚ defines fields not found in struct: locations.
โ”‚ Struct: models.ProxyHost
โ”‚ Object type: types.ObjectType["access_list_id":basetypes.Int64Type, "advanced_config":basetypes.StringType,
โ”‚ "allow_websocket_upgrade":basetypes.BoolType, "block_exploits":basetypes.BoolType,
โ”‚ "caching_enabled":basetypes.BoolType, "certificate_id":basetypes.StringType,
โ”‚ "created_on":basetypes.StringType, "domain_names":types.ListType[basetypes.StringType],
โ”‚ "enabled":basetypes.BoolType, "forward_host":basetypes.StringType, "forward_port":basetypes.Int64Type,
โ”‚ "forward_scheme":basetypes.StringType, "hsts_enabled":basetypes.BoolType,
โ”‚ "hsts_subdomains":basetypes.BoolType, "http2_support":basetypes.BoolType, "id":basetypes.Int64Type,
โ”‚ "locations":types.ListType[types.ObjectType["advanced_config":basetypes.StringType,
โ”‚ "forward_host":basetypes.StringType, "forward_port":basetypes.Int64Type,
โ”‚ "forward_scheme":basetypes.StringType, "path":basetypes.StringType]],
โ”‚ "meta":types.MapType[basetypes.StringType], "modified_on":basetypes.StringType,
โ”‚ "owner_user_id":basetypes.Int64Type, "ssl_forced":basetypes.BoolType]
โ•ต

Proxy Host

Hi, now your provider can add proxy host with certificate?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.