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
...will generate a function name like lookupInputBusinessId-058765e. Unfortunately, - is not a legal character for a function name.
Pulumi -> Terraform -> AWS happily lets you create a function with an illegal name however. After creating it, the AWS console won't let you edit the function, reporting that the name is illegal. And even more strangely, if you then try and modify the function and update via Pulumi, it leads to the following error:
BadRequestException: Invalid Function name given, must match pattern [_A-Za-z][_0-9A-Za-z]*
Note that appsync function names do not need to be unique - the functionId is used to reference the function and not the name. So I think that adding the unique suffix is unnecessary in this case.
There is a simple workaround: explicitly specify the name in the Pulumi config:
Fixes: #781
Before this change, the autogeneration was giving the following
message
```
RequestException: Invalid Function name given, must match pattern [_A-Za-z][_0-9A-Za-z
```
Fixes: #781
Before this change, the autogeneration was giving the following
message
```
RequestException: Invalid Function name given, must match pattern [_A-Za-z][_0-9A-Za-z
```
Pulumi generates a
name
argument for most resources by appending a unique suffix to the resource name. E.g....will generate a function name like
lookupInputBusinessId-058765e
. Unfortunately,-
is not a legal character for a function name.Pulumi -> Terraform -> AWS happily lets you create a function with an illegal name however. After creating it, the AWS console won't let you edit the function, reporting that the name is illegal. And even more strangely, if you then try and modify the function and update via Pulumi, it leads to the following error:
Note that appsync function names do not need to be unique - the
functionId
is used to reference the function and not the name. So I think that adding the unique suffix is unnecessary in this case.There is a simple workaround: explicitly specify the name in the Pulumi config:
The text was updated successfully, but these errors were encountered: