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

fogg.json as suggested does not work #439

Open
queglay opened this issue Nov 15, 2022 · 0 comments
Open

fogg.json as suggested does not work #439

queglay opened this issue Nov 15, 2022 · 0 comments

Comments

@queglay
Copy link

queglay commented Nov 15, 2022

I wasn't able to get the provider working by just defining it in terraform, so I tried the suggested workflow with fogg in an empty repo:

user@MacBook-Pro bless-test % fogg apply                                 
fogg.yml has error(s):
ERROR: could not open fogg.yml config file
user@MacBook-Pro bless-test % fogg version
0.76.0

The docs suggested I use these contents for fogg.json:

{
  "defaults":{},
  "modules":{},
  "accounts":{},
  "envs":{},
  "plugins": {
    "terraform_providers": {
      "terraform-provider-bless": {
        "url": "https://github.com/chanzuckerberg/terraform-provider-bless/releases/download/v0.2.5/terraform-provider-bless_0.2.5_linux_amd64.tar.gz",
        "format": "tar"
      }
    }
  }
}

I'm guessing v0.76 requires a yaml and not json anymore, so I tried converting the suggested json to fogg.yaml:

defaults: {}
modules: {}
accounts: {}
envs: {}
plugins:
    terraform_providers:
        terraform-provider-bless:
            url: 'https://github.com/chanzuckerberg/terraform-provider-bless/releases/download/v0.2.5/terraform-provider-bless_0.2.5_linux_amd64.tar.gz'
            format: tar

This also produced errors, so I'm guessing the specified information is not sufficient to get started.

user@MacBook-Pro bless-test % fogg apply    
fogg.yml has error(s):
UNKNOWN ERROR: 4 errors occurred:
        * Key: 'Config.Version' Error:Field validation for 'Version' failed on the 'required' tag
        * global must have a valid owner set at either the global or defaults level
        * global must have a valid project set at either the global or defaults level
        * global must have a valid terraform version set at either the global or defaults level
@queglay queglay changed the title fogg.json as suggeted does not work fogg.json as suggested does not work Nov 15, 2022
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

1 participant