Created
August 28, 2019 03:01
-
-
Save phillhocking/d6cc563ebeb56641c2946ed851c7f4e6 to your computer and use it in GitHub Desktop.
Terraform Toubleshooting 1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Error: Invalid value for module argument | |
on main.tf line 8, in module "ghost-db": | |
8: security_groups = aws_security_group.ghost-db.id | |
The given value is not suitable for child module variable "security_groups" | |
defined at ghost-database/variables.tf:17,1-27: list of string required. | |
Error: Invalid value for module argument | |
on main.tf line 24, in module "ghost-blog": | |
24: security_groups = aws_security_group.ghost-server.id | |
The given value is not suitable for child module variable "security_groups" | |
defined at ghost-server/variables.tf:13,1-27: list of string required. | |
-------------------------------------------------------------------------------------- | |
[phocking@ns0 ~/phillhocking.com/ghost-database]$ cat variables.tf | |
variable "name" { | |
type = string | |
} | |
variable "db_name" { | |
type = string | |
} | |
variable "db_user" { | |
type = string | |
} | |
variable "db_pass" { | |
type = string | |
} | |
variable "security_groups" { | |
type = list(string) | |
} | |
-------------------------------------------------------- | |
[phocking@ns0 ~/phillhocking.com/ghost-server]$ cat variables.tf | |
variable "name" { type = "string" } | |
variable "domain_name" { type = "string" } | |
variable "db_host" { type = "string" } | |
variable "db_name" { type = "string" } | |
variable "db_user" { type = "string" } | |
variable "db_pass" { type = "string" } | |
variable "key_pair_name" { type = "string" } | |
variable "key_pair_loc" { type = "string" } | |
variable "cloudfront_ssl_acm_arn" { type = "string" } | |
variable "security_groups" { type = list(string) } | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment