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

[bin/infra provision] command Error with '"name" cannot be longer than 32 characters' #85

Closed
meng-x opened this issue Feb 20, 2019 · 3 comments

Comments

@meng-x
Copy link

meng-x commented Feb 20, 2019

I'm using a terraform.tfvars file as follow:

`region = "us-east-1"
bucket = "terraform-state"
dynamodb_table = "terraform-lock"
key_name = "terraform-key"
prefix = "xxxxx"
db_password = "xxxxxdb666"
db_instance_class = "db.m4.large"
db_storage = "100"
root_block_size = 60
pool_size = 30

chains = {
"mychain" = "https://rpc.testnet.xxxxx"
}
chain_trace_endpoint = {
"mychain" = "https://rpc.testnet.xxxxx"
}chain_ws_endpoint = {
"mychain" = "wss://rpc.testnet.xxxxx"
}
chain_jsonrpc_variant = {
"mychain" = "geth"
}
chain_logo = {
"mychain" = "https://..."
}
chain_coin = {
"mychain" = "XXX"
}
chain_network = {
"mychain" = "xxxxxxxx"
}
chain_subnetwork = {
"mychain" = "XXX xxxxxxxx"
}
chain_network_path = {
"mychain" = "/xxxxx/xxx"
}
chain_network_icon = {
"mychain" = "https://..."
}`

It successfully created S3 and DynamoDB resources but stuck at seemingly load balancer targets:

...
Initializing modules...

  • module.backend
  • module.stack

Initializing the backend...

Initializing provider plugins...

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.
Acquiring state lock. This may take a few moments...
Releasing state lock. This may take a few moments...

Warning: module.stack.aws_route53_zone.main: "vpc_id": [DEPRECATED] use 'vpc' attribute instead

Error: module.stack.aws_lb_target_group.explorer[0]: "name" cannot be longer than 32 characters
...

@acravenho
Copy link
Contributor

acravenho commented Feb 20, 2019

Your mychain is too long causing the aws load balancer name to be greater than 32 characters.

I usually stick to 5 characters.

@meng-x
Copy link
Author

meng-x commented Feb 21, 2019

@acravenho Thanks! Problem solved

@ArseniiPetrovich
Copy link
Collaborator

Closed via #94.

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

3 participants