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

ROS not able to create resources that name contians hyphen #1004

Open
Blankll opened this issue May 10, 2024 · 2 comments
Open

ROS not able to create resources that name contians hyphen #1004

Blankll opened this issue May 10, 2024 · 2 comments

Comments

@Blankll
Copy link

Blankll commented May 10, 2024

  • Command Format:
    ROS yaml
  ApiGateway:
    Type: 'ALIYUN::ApiGateway::Group'
    Properties:
      GroupName: !Join [ '-', [ !Ref AppName, 'api-gateway', !Ref AppEnv] ]

execute command to create stack:

 ros CreateStack \
--StackName $STACK_NAME \
--TemplateBody "$(cat ./iac/stack.yml)" \
--Parameters ParameterKey=AppName,ParameterValue=$APP_NAME,ParameterKey=AppEnv,ParameterValue=$APP_ENV
  • Execution Command:
    resource can create successfully since I can create ApiGateway::Group resource that GroupName contains - through the web console
  • Output:
    Message: Property error: : Resources.ApiGatewayApi.Properties.ApiName: : Resource [ApiGatewayApi]: xxx-api-gateway-api-dev is invalid. Its length should be 4-50 characters, and should begin with upper or lower case letter or Chinese. Numbers or "_" are included.
@JacksonTian
Copy link
Contributor

JacksonTian commented May 13, 2024

--TemplateBody="$(cat ./iac/stack.yml)"

这样试下

@Blankll
Copy link
Author

Blankll commented May 16, 2024

@JacksonTian ,还是一样的错误

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

2 participants