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

Error: Unsupported block type #2

Open
kaihendry opened this issue Jul 18, 2019 · 0 comments
Open

Error: Unsupported block type #2

kaihendry opened this issue Jul 18, 2019 · 0 comments

Comments

@kaihendry
Copy link

[hendry@t480s talks]$ terraform init
Initializing modules...
Downloading github.com/fillup/terraform-hugo-s3-cloudfront for hugosite...
- hugosite in .terraform/modules/hugosite

Initializing the backend...

Initializing provider plugins...
- Checking for available provider plugins...
- Downloading plugin for provider "aws" (terraform-providers/aws) 2.19.0...
- Downloading plugin for provider "template" (terraform-providers/template) 2.1.2...

The following providers do not have any version constraints in configuration,
so the latest version was installed.

To prevent automatic upgrades to new major versions that may contain breaking
changes, it is recommended to add version = "..." constraints to the
corresponding provider blocks in configuration, with the constraint strings
suggested below.

* provider.aws: version = "~> 2.19"
* provider.template: version = "~> 2.1"

Terraform has been successfully initialized!

You may now begin working with Terraform. Try running "terraform plan" to see
any changes that are required for your infrastructure. All Terraform commands
should now work.

If you ever set or change modules or backend configuration for Terraform,
rerun this command to reinitialize your working directory. If you forget, other
commands will detect it and remind you to do so if necessary.
[hendry@t480s talks]$ terraform plan

Error: Unsupported block type

  on .terraform/modules/hugosite/main.tf line 7, in data "template_file" "bucket_policy":
   7:   vars {

Blocks of type "vars" are not expected here. Did you mean to define argument
"vars"? If so, use the equals sign to assign it a value.

[hendry@t480s talks]$ terraform --version
Terraform v0.12.4
+ provider.aws v2.19.0
+ provider.template v2.1.2
[hendry@t480s talks]$ cat s3.tf
provider "aws" {
  profile = "mine"
  region  = "ap-southeast-1"
}

module "hugosite" {
  source      = "github.com/fillup/terraform-hugo-s3-cloudfront"
  aliases     = ["talks.webconverger.com"]
  bucket_name = "talks.webconverger.com"
  cert_domain = "*.webconverger.com"
}
[hendry@t480s talks]$
[hendry@t480s talks]$
[hendry@t480s talks]$
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