{"id":591,"date":"2019-11-24T23:00:00","date_gmt":"2019-11-24T14:00:00","guid":{"rendered":"https:\/\/p-corporate-blog-cms.mmmcorp.co.jp\/blog\/2019\/11\/24\/aws-cfn-import"},"modified":"2019-11-24T23:00:00","modified_gmt":"2019-11-24T14:00:00","slug":"aws-cfn-import","status":"publish","type":"post","link":"https:\/\/p-corporate-blog-cms.mmmcorp.co.jp\/blog\/2019\/11\/24\/aws-cfn-import\/","title":{"rendered":"CloudFormation\u30a4\u30f3\u30dd\u30fc\u30c8\u3092SAM\u3067\u8a66\u3059"},"content":{"rendered":"

\u7d50\u8ad6\uff1aServerless Application Model\u3067\u306eCloudFormation \u30a4\u30f3\u30dd\u30fc\u30c8\u6a5f\u80fd\u306e\u5229\u7528\u306f
\n\u73fe\u6642\u70b9(2019\/11\/24)\u3067\u306f\u660e\u78ba\u306a\u30a2\u30ca\u30a6\u30f3\u30b9\u306f\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n

\u65b0\u6a5f\u80fd \u2013 CloudFormation \u30b9\u30bf\u30c3\u30af\u3078\u306e\u65e2\u5b58\u30ea\u30bd\u30fc\u30b9\u306e\u30a4\u30f3\u30dd\u30fc\u30c8<\/a>\u304c\u767a\u8868\u3055\u308c\u307e\u3057\u305f\uff01<\/p>\n

\u5f53\u65b9\u3001CloudFormation\u3092\u597d\u3093\u3067\u5229\u7528\u3059\u308b\u30d7\u30ed\u30b0\u30e9\u30de\u30fc \u3084\u3063\u3055\u3093<\/code> \u3067\u3054\u3056\u3044\u307e\u3059\u3002
\nCloudFormation\u3092\u4f7f\u3044\u59cb\u3081\u305f\u5f53\u521d\u304b\u3089\u4e0d\u4fbf\u3060\u3068\u611f\u3058\u3066\u3044\u305f\u70b9\u304c\u3001<\/p>\n

\u300c\u65e2\u5b58\u306e\u30ea\u30bd\u30fc\u30b9\u3092CloudFormation \u30b9\u30bf\u30c3\u30af\u3067\u7ba1\u7406\u3059\u308b\u3053\u3068\u306f\u3067\u304d\u306a\u3044\u3002
\n\u3000\u7ba1\u7406\u3057\u305f\u3044\u5834\u5408\u306f\u3001\u65e2\u5b58\u30ea\u30bd\u30fc\u30b9\u3092\u524a\u9664\u3057\u3066CloudFormation\u3092\u7528\u3044\u3066
\n\u3000\u518d\u4f5c\u6210\u3059\u308b\u3002\u300d<\/p>\n

\u3068\u3044\u3046\u4ed5\u69d8\u3067\u3057\u305f\u3002<\/p>\n

\u3053\u306e\u4ed5\u69d8\u304c\u3064\u3044\u306b\u89e3\u6d88\u3055\u308c\u3001
\n\u65e2\u5b58\u30ea\u30bd\u30fc\u30b9\u3092\u30b9\u30bf\u30c3\u30af\u306b\u542b\u3081\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\uff01<\/b><\/p>\n

\u4eca\u307e\u3067\u306f\u3001\u65e2\u5b58\u306e\u30ea\u30bd\u30fc\u30b9\u3092CloudFormation \u30b9\u30bf\u30c3\u30af\u7ba1\u7406\u3057\u305f\u3044\u5834\u5408\u3001
\nCloudFormer\u3092\u4f7f\u3063\u3066CloudFormation\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u3092\u51fa\u529b\u3057\u3001
\n\u51fa\u529b\u3055\u308c\u305f\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u5185\u5bb9\u306b\u57fa\u3065\u3044\u3066CloudFormation\u30b9\u30bf\u30c3\u30af\u3092
\n\u69cb\u7bc9\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3057\u305f\u304c\u3001\u3053\u308c\u306b\u3088\u308a\u4e0d\u8981\u306b\u306a\u308a\u307e\u3059\u306d\uff01<\/p>\n

\u3055\u3063\u305d\u304f SAM<\/code> \u3067\u5229\u7528\u3057\u3066\u307f\u305f\u3044\u3068\u601d\u3044\u307e\u3059(\u30d5\u30e9\u30b0\u3067\u3059...)\uff01<\/p>\n

S3\u30d0\u30b1\u30c3\u30c8\u3092\u65e2\u5b58\u306eSAM\u30b9\u30bf\u30c3\u30af\u306b\u30a4\u30f3\u30dd\u30fc\u30c8\u3057\u3066\u307f\u308b<\/h2>\n

\u4eca\u56de\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30b7\u30f3\u30d7\u30eb\u306aServerless Application Model\u306e
\nCloudFormation\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u30d5\u30a1\u30a4\u30eb\u306b\u3001\u30d3\u30eb\u30c9\u30a2\u30fc\u30c6\u30a3\u30d5\u30a1\u30af\u30c8\u3092\u4fdd\u5b58\u3059\u308b
\nS3\u30d0\u30b1\u30c3\u30c8\u3092\u30a4\u30f3\u30dd\u30fc\u30c8\u3057\u3066\u307f\u307e\u3059\u3002<\/p>\n

AWSTemplateFormatVersion: 2010-09-09\nTransform: AWS::Serverless-2016-10-31\n\nResources:\n  SandboxFunction:\n    Type: AWS::Serverless::Function\n    Properties:\n      FunctionName: sam-sandbox\n      CodeUri: src\/handlers\n      Handler: sandbox\n      Runtime: go1.x\n      # AutoPublishAlias: live<\/code><\/pre>\n

\u65e9\u901f\u3001\u65e2\u5b58\u306e\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u306b\u8ffd\u8a18\u3057\u3066\u307f\u307e\u3059<\/h3>\n

\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u8ffd\u8a18\u3057\u307e\u3059\u3002<\/p>\n

AWSTemplateFormatVersion: 2010-09-09\nTransform: AWS::Serverless-2016-10-31\n\nResources:\n  SandboxFunction:\n    Type: AWS::Serverless::Function\n    Properties:\n      FunctionName: sam-sandbox\n      CodeUri: src\/handlers\n      Handler: sandbox\n      Runtime: go1.x\n      # AutoPublishAlias: live\n\n  SamSandboxPackages:\n    Type: AWS::S3::Bucket\n    DeletionPolicy: Retain\n    Properties:\n      BucketName: sam-sandbox-package<\/code><\/pre>\n

\u30de\u30cd\u30fc\u30b8\u30e1\u30f3\u30c8\u30b3\u30f3\u30bd\u30fc\u30eb\u304b\u3089\u30a4\u30f3\u30dd\u30fc\u30c8\u3059\u308b<\/h3>\n

\u65e2\u5b58\u306e\u30b9\u30bf\u30c3\u30af\u304b\u3089
\n\u300c\u30b9\u30bf\u30c3\u30af\u30a2\u30af\u30b7\u30e7\u30f3\u300d -> \u300c\u30b9\u30bf\u30c3\u30af\u3078\u306e\u30ea\u30bd\u30fc\u30b9\u306e\u30a4\u30f3\u30dd\u30fc\u30c8\u300d\u3092\u5b9f\u884c\u3057\u307e\u3059
\n\"\"<\/p>\n

\u5909\u66f4\u6e08\u307f\u306e\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u30d5\u30a1\u30a4\u30eb\u3092\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3057\u3066\u9069\u7528\u3057\u3066\u307f\u307e\u3059\u3002
\n\"\"<\/p>\n

\u60f3\u5b9a\u5916\u306e\u7d50\u679c\u304c ...<\/h3>\n

\u304a\u3001\u304a\u3084 ... \u3053\u308c\u306f\u60f3\u5b9a\u5916\u3067\u3059\u306d ...<\/p>\n

\"\"<\/p>\n

\u30a8\u30e9\u30fc\u304c\u51fa\u529b\u3055\u308c\u307e\u3057\u305f\u3002<\/font>
\nServerless Application Model\u306f
\nCloudFormation\u306e\u62e1\u5f35\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\u3060\u304b\u3089\u3067\u3057\u3087\u3046\u304b\u3002
\n\u30a2\u30a6\u30c8\u30d7\u30c3\u30c8\u3055\u308c\u305f\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\u3084\u3001\u5909\u63db\u5f8c\u306e\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\u3092\u6307\u5b9a\u3057\u305f\u5834\u5408\u3082\u540c\u69d8\u306e\u30a8\u30e9\u30fc\u304c\u51fa\u529b\u3055\u308c\u307e\u3059\u3002<\/font><\/p>\n

\u62e1\u5f35\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\u3067\u306f\u306a\u3044\u3001\u6a19\u6e96\u306eCloudFormation\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u306a\u3089
\n\u30a4\u30f3\u30dd\u30fc\u30c8\u304c\u53ef\u80fd\u3067\u3059\u3002<\/p>\n

\u53c2\u8003\uff1a
\n\u6a19\u6e96\u306eCloudFormation\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u306a\u3089\u30a4\u30f3\u30dd\u30fc\u30c8\u53ef\u80fd\u3067\u3059\u3002
\n\"\"<\/p>\n

\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3092\u8aad\u307f\u6f01\u3063\u3066\u307f\u308b<\/h2>\n

CloudFormation \u30a4\u30f3\u30dd\u30fc\u30c8\u6a5f\u80fd\u306e\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3092\u63a2\u3057\u3001
\n\u30a4\u30f3\u30c8\u30a5\u30fb\u30b8\u30fb\u30a2\u30f3\u30ce\u30a6\u30f3\u3057\u305f\u3068\u3053\u308d\u3001\u82f1\u8a9e\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u306f
\n\u305f\u304f\u3055\u3093\u898b\u3064\u304b\u308a\u307e\u3057\u305f\u3002<\/p>\n