You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[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]$
The text was updated successfully, but these errors were encountered:
The text was updated successfully, but these errors were encountered: