- 追加された行はこの色です。
- 削除された行はこの色です。
#author("2019-08-21T11:58:55+00:00","","")
#author("2019-08-29T13:22:08+00:00","","")
#mynavi(AWSメモ)
#setlinebreak(on);
* 目次 [#m682af77]
#contents
- 関連
-- [[1つのAWS LambdaでSPA(CloudFront編)]]
* XXXXXXX [#bbba60eb]
#html(<div style="padding-left: 10px;">)
#TODO
#html(</div>)
ヘッダで
isBase64Encoded: True
API Gatewayで
バイナリメディアタイプに、バイナリとして扱いたいコンテンツタイプを指定する
https://docs.aws.amazon.com/ja_jp/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-restapi.html
https://docs.aws.amazon.com/ja_jp/apigateway/latest/developerguide/api-gateway-payload-encodings.html
https://docs.aws.amazon.com/ja_jp/serverless-application-model/latest/developerguide/serverless-controlling-access-to-apis.html
template.yml
#mycode2(){{
Resources:
MyApi:
Type: AWS::ApiGateway::RestApi
Properties:
Name: String
Description: String
BinaryMediaTypes:
- "image/*"
MyFunction:
Type: AWS::Serverless::Function
Properties:
CodeUri: ./src
Handler: index.handler
Runtime: python3.6
Events:
GetRoot:
Type: Api
Properties:
RestApiId: !Ref MyApi
Path: /
Method: get
}}