Skip to content

Commit

Permalink
Fix name limit for azure container groups. (#94)
Browse files Browse the repository at this point in the history
  • Loading branch information
CyrusNajmabadi authored Aug 29, 2018
1 parent 9654f5d commit 3034485
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion resources.go
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,13 @@ func Provider() tfbridge.ProviderInfo {
},
},
"azurerm_container_service": {Tok: azureResource(azureContainerService, "Service")},
"azurerm_container_group": {Tok: azureResource(azureContainerService, "Group")},
"azurerm_container_group": {
Tok: azureResource(azureContainerService, "Group"),
Fields: map[string]*tfbridge.SchemaInfo{
// https://docs.microsoft.com/en-us/azure/architecture/best-practices/naming-conventions#containers
// Max length of a container group/instance is 63
azureName: AutoNameWithMaxLength(azureName, 63),
},},
"azurerm_kubernetes_cluster": {Tok: azureResource(azureContainerService, "KubernetesCluster")},

// Core
Expand Down

0 comments on commit 3034485

Please sign in to comment.