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 · 6 comments
Open

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

Blankll opened this issue May 10, 2024 · 6 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 ,还是一样的错误

@JacksonTian
Copy link
Contributor

看起来是不满足 API 的要求,问题本身不是 CLI 导致的。请修改模版。

@Blankll
Copy link
Author

Blankll commented Jul 3, 2024

不是,如果不满足需求,为什么没有validation给出明确的错误?而且这里的错误信息和实际情况也不是一个回事呀
你怎么就吧issue关了呢?
如果是模版问题我也给出sample了那么修改建议是什么呢?

plus:我等了两个月你就给这么个敷衍的回复?

@JacksonTian

@JacksonTian JacksonTian reopened this Jul 12, 2024
@JacksonTian
Copy link
Contributor

@Blankll 这个报错背后的校验逻辑不是 cli 提供的,是背后的 ROS 的。业务层面的问题,工具层面修复不了,这是关 issue 的原因。不过如果还有任何疑问,我们都可以 re-open。

您可以在工单系统提交该问题,带上相关的 Request ID,会有专人来跟进你的问题。

@Prodesire
Copy link
Member

@Blankll 这是ApiGateway分组名称规则允许范围扩大,但ROS未对齐导致。我们本周四会发布解决此问题,感谢反馈!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants