Skip to content
This repository was archived by the owner on Apr 20, 2023. It is now read-only.
This repository was archived by the owner on Apr 20, 2023. It is now read-only.

CFN template fails in China regions #16

@Chen188

Description

@Chen188

Issues desc:
For China regions:

  1. apigw do not support Edge-optimized endpoint configuration, which will cause error Endpoint Configuration type EDGE is not supported in this region: cn-northeast-1
  2. for new AWS account, the default allowed notebook instance types are ml.t2.medium and ml.t3.medium, thus this template will failed due to notebook instance limitation.
  3. wrong endpoint url formats of apigw and sagemaker notebook

Solutions:

  1. specify the EndpointConfiguration under Api / Properties section:
  Api:
    DependsOn: VpcLink
    Type: 'AWS::ApiGateway::RestApi'
    Properties:
      EndpointConfiguration:
        Types:
        - REGIONAL
  1. update instance types:
Parameters:
  SagemakerInstance: 
    Type: String
    Default: ml.t3.medium
    AllowedValues: ['ml.t3.medium','ml.t2.medium']
    Description: 'Instance type for Sagemaker Notebook.'
  1. endpoint url formats
    • apigw: https://${Api}.execute-api.${AWS::Region}.amazonaws.com.cn/api/
    • sagemaker notebook: https://${SageMakerNotebookInstance.NotebookInstanceName}.notebook.${AWS::Region}.sagemaker.com.cn/tree

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions