yaml-sample
の編集
https://erion1107-pukiwiki.erion1107.net/?yaml-sample
[
トップ
] [
編集
|
差分
|
バックアップ
|
添付
|
リロード
] [
新規
|
一覧
|
単語検索
|
最終更新
|
ヘルプ
]
-- 雛形とするページ --
kiji-template
2018年度学習計画メモ
20180217-01-オフラインインストール発表用メモ
Ansible構成例
AWS認定ソリューションアーキテクト・アソシエーション認定テスト対策
bashコーディング規約
BracketName
CentOS7で自宅サーバー作成勉強用リスト
CentOS 7とSamba4で自宅用Active Directory Domain Controller (AD DC)を構築する① インストール編
CloudflareとLet’s EncryptでWebサイトをHTTPS化
COBOLプログラミング入門
conoHaAPIまとめ
Docker-Command一覧
DockerCommandCheatSheet
Docker_Cmd_List
ERION1107-mywiki
erion1107-mywiki
ERION1107自分用のwiki
ESXiインストールについて
FontPage
FormattingRules
FPGAのアーキテクチャとソフトエラー起因の可用性低下
FrontPage
F#EntryForWeb
F#入門
Help
IaC for Ansible with Windows OS
Install_Redmine3.4_with_CentOS7.3
InterWiki
InterWikiName
InterWikiSandBox
Java-Struts2導入について
JavaSwingコンポーネント
Java入門
Java入門2
Linux 標準教科書に出てくるコマンドリスト
matplotlib-円グラフの作成メモ
MBSAについて
MenuBar
Non-BlockingIOを使ってみよう-Java編
PHP
PowerShell入門
PukiWiki
PukiWiki/1.4
PukiWiki/1.4/Manual
PukiWiki/1.4/Manual/Plugin
PukiWiki/1.4/Manual/Plugin/A-D
PukiWiki/1.4/Manual/Plugin/E-G
PukiWiki/1.4/Manual/Plugin/H-K
PukiWiki/1.4/Manual/Plugin/L-N
PukiWiki/1.4/Manual/Plugin/O-R
PukiWiki/1.4/Manual/Plugin/S-U
PukiWiki/1.4/Manual/Plugin/V-Z
pukiwiki記法の書き方入門
python-code-memo
re-view入門
RecentDeleted
SandBox
SoftEther VPN for Linuxについて
SoftEtherVPNについて
Spring解体新書メモ
SQL_Entry
StudyCentOSForWebSiteBuild
Tips作業メモ
UML
UNIXコマンド
Using_Prism.Unity_with_WPF
Vagrant入門
VivlioStyleで行こう!
VPNのススメ
WikiEngines
WikiName
WikiWikiWeb
WindowsPhone開発のためのPrism+ReactiveProperty基本
WindowsとLinuxのオフラインインストールについて調べてみた
WindowsとLinuxのオフラインインストールについて調べてみた 2
wireshark
WSL(Windows Subsystem for Linux)の基本Memo
yaml-sample
YAMLを覚えよう
YukiWiki
ZABBIX
■Redmine On Docker
お仕事用メモ
はじめてのアプリ発注
アプリ開発後に行う動作テストについて
カタン戦術論
デザインパターン23種
プレゼン発表のコツ
レンタルサーバーに独自SSL「Let's Encrypt」導入(Windows10編)
個人アプリ開発のメモ
勉強会発表用メモ
自分用のpukiwiki
記憶術メモ
[[kiji-template]] Resources: ECRRepository: Type: AWS::ECR::Repository Properties: RepositoryName: YourRepositoryName ECRRepositoryRole: Type: AWS::IAM::Role Properties: RoleName: test001 AssumeRolePolicyDocument: Version: '2012-10-17' Statement: - Effect: Allow Principal: Service: ecr.amazonaws.com Action: sts:AssumeRole LambdaExecutionRole: Type: AWS::IAM::Role Properties: RoleName: LambdaExecutionRole AssumeRolePolicyDocument: Version: '2012-10-17' Statement: - Effect: Allow Principal: Service: lambda.amazonaws.com Action: sts:AssumeRole Policies: - PolicyName: LambdaECRIntegrationPolicy PolicyDocument: Version: '2012-10-17' Statement: - Effect: Allow Action: - ecr:GetAuthorizationToken - ecr:GetDownloadUrlForLayer - ecr:BatchCheckLayerAvailability - ecr:GetRepositoryPolicy - ecr:DescribeRepositories - ecr:ListImages - ecr:GetLifecyclePolicy - ecr:GetLifecyclePolicyPreview - ecr:GetRepositoryPolicy - ecr:DescribeImages - ecr:GetImageScanFindings - ecr:InitiateLayerUpload - ecr:UploadLayerPart - ecr:CompleteLayerUpload - ecr:PutImage Resource: !GetAtt ECRRepository.Arn AnotherRole: Type: AWS::IAM::Role Properties: RoleName: AnotherRole AssumeRolePolicyDocument: Version: '2012-10-17' Statement: - Effect: Allow Principal: Service: lambda.amazonaws.com # または必要なサービス Action: sts:AssumeRole ECRRepositoryPolicy: Type: AWS::ECR::RepositoryPolicy Properties: RepositoryName: !Ref ECRRepository PolicyText: Version: '2012-10-17' Statement: - Effect: Allow Principal: AWS: !GetAtt AnotherRole.Arn # 別のIAMロールのARNを指定 Action: - ecr:GetDownloadUrlForLayer - ecr:BatchCheckLayerAvailability - ecr:GetRepositoryPolicy - ecr:DescribeRepositories - ecr:ListImages - ecr:GetLifecyclePolicy - ecr:GetLifecyclePolicyPreview - ecr:GetRepositoryPolicy - ecr:DescribeImages - ecr:GetImageScanFindings - ecr:InitiateLayerUpload - ecr:UploadLayerPart - ecr:CompleteLayerUpload - ecr:PutImage import nltk import json import boto3 from pptx import Presentation #import plotly.express as px import plotly.graph_objects as go import io nltk.data.path.append("/var/task") def handler(event, context): tokens = nltk.word_tokenize(event["sentence"]) #Figureオブジェクト作成 fig = go.Figure() #traceを作成 trace1 = go.Bar(x=[1, 2, 3, 4], y=[1, 4, 9, 16]) #traceをFigureに追加 fig.add_trace(trace1) #レイアウトの設定 #fig.update_layout(title='グラフのタイトル', # width=1000, # height=500) #軸の設定 #fig.update_xaxes(title='横軸') #fig.update_yaxes(title='縦軸') # グラフを作成 # fig = px.scatter(x=[1, 2, 3], y=[4, 5, 6]) plotly_image_bytes = fig.to_image(format="png") # PPTXファイルを作成 prs = Presentation() slide = prs.slides.add_slide(prs.slide_layouts[5]) left = top = width = height = 1 slide.shapes.add_picture(io.BytesIO(plotly_image_bytes), left, top, width, height) # 一時保存 file_path = "/tmp/output.pptx" prs.save(file_path) # PPTXファイルをS3にアップロード s3 = boto3.client('s3') bucket_name = 'my-sample-s3-hori-bucket' object_key = 'test/output.pptx' s3.upload_file(file_path, bucket_name, object_key) return { "statusCode": 200, "body": json.dumps({"tokens": tokens}) } * Name [#bc65a518] * Contents [#sc3dccee] #contents * What's XX [#wabc21ac] XX is ~ * Discribe [#r711b9b8] XX discribe is ~ example. XXX = XX + X * 1. [#fdd45eca] ** 1.1. [#v5a6705a] *** 1.1.1 [#fa72975a] + ① ++ ② +++ ③ - ・1 -- ・2 --- ・3 | | |h | | | | | | ---- [[kiji-template]] * Name * Contents #contents * What's XX XX is ~ * Discribe XX discribe is ~ example. XXX = XX + X * 1. ** 1.1. *** 1.1.1 + ① ++ ② +++ ③ - ・1 -- ・2 --- ・3 | | |h | | | | | | ----
タイムスタンプを変更しない
[[kiji-template]] Resources: ECRRepository: Type: AWS::ECR::Repository Properties: RepositoryName: YourRepositoryName ECRRepositoryRole: Type: AWS::IAM::Role Properties: RoleName: test001 AssumeRolePolicyDocument: Version: '2012-10-17' Statement: - Effect: Allow Principal: Service: ecr.amazonaws.com Action: sts:AssumeRole LambdaExecutionRole: Type: AWS::IAM::Role Properties: RoleName: LambdaExecutionRole AssumeRolePolicyDocument: Version: '2012-10-17' Statement: - Effect: Allow Principal: Service: lambda.amazonaws.com Action: sts:AssumeRole Policies: - PolicyName: LambdaECRIntegrationPolicy PolicyDocument: Version: '2012-10-17' Statement: - Effect: Allow Action: - ecr:GetAuthorizationToken - ecr:GetDownloadUrlForLayer - ecr:BatchCheckLayerAvailability - ecr:GetRepositoryPolicy - ecr:DescribeRepositories - ecr:ListImages - ecr:GetLifecyclePolicy - ecr:GetLifecyclePolicyPreview - ecr:GetRepositoryPolicy - ecr:DescribeImages - ecr:GetImageScanFindings - ecr:InitiateLayerUpload - ecr:UploadLayerPart - ecr:CompleteLayerUpload - ecr:PutImage Resource: !GetAtt ECRRepository.Arn AnotherRole: Type: AWS::IAM::Role Properties: RoleName: AnotherRole AssumeRolePolicyDocument: Version: '2012-10-17' Statement: - Effect: Allow Principal: Service: lambda.amazonaws.com # または必要なサービス Action: sts:AssumeRole ECRRepositoryPolicy: Type: AWS::ECR::RepositoryPolicy Properties: RepositoryName: !Ref ECRRepository PolicyText: Version: '2012-10-17' Statement: - Effect: Allow Principal: AWS: !GetAtt AnotherRole.Arn # 別のIAMロールのARNを指定 Action: - ecr:GetDownloadUrlForLayer - ecr:BatchCheckLayerAvailability - ecr:GetRepositoryPolicy - ecr:DescribeRepositories - ecr:ListImages - ecr:GetLifecyclePolicy - ecr:GetLifecyclePolicyPreview - ecr:GetRepositoryPolicy - ecr:DescribeImages - ecr:GetImageScanFindings - ecr:InitiateLayerUpload - ecr:UploadLayerPart - ecr:CompleteLayerUpload - ecr:PutImage import nltk import json import boto3 from pptx import Presentation #import plotly.express as px import plotly.graph_objects as go import io nltk.data.path.append("/var/task") def handler(event, context): tokens = nltk.word_tokenize(event["sentence"]) #Figureオブジェクト作成 fig = go.Figure() #traceを作成 trace1 = go.Bar(x=[1, 2, 3, 4], y=[1, 4, 9, 16]) #traceをFigureに追加 fig.add_trace(trace1) #レイアウトの設定 #fig.update_layout(title='グラフのタイトル', # width=1000, # height=500) #軸の設定 #fig.update_xaxes(title='横軸') #fig.update_yaxes(title='縦軸') # グラフを作成 # fig = px.scatter(x=[1, 2, 3], y=[4, 5, 6]) plotly_image_bytes = fig.to_image(format="png") # PPTXファイルを作成 prs = Presentation() slide = prs.slides.add_slide(prs.slide_layouts[5]) left = top = width = height = 1 slide.shapes.add_picture(io.BytesIO(plotly_image_bytes), left, top, width, height) # 一時保存 file_path = "/tmp/output.pptx" prs.save(file_path) # PPTXファイルをS3にアップロード s3 = boto3.client('s3') bucket_name = 'my-sample-s3-hori-bucket' object_key = 'test/output.pptx' s3.upload_file(file_path, bucket_name, object_key) return { "statusCode": 200, "body": json.dumps({"tokens": tokens}) } * Name [#bc65a518] * Contents [#sc3dccee] #contents * What's XX [#wabc21ac] XX is ~ * Discribe [#r711b9b8] XX discribe is ~ example. XXX = XX + X * 1. [#fdd45eca] ** 1.1. [#v5a6705a] *** 1.1.1 [#fa72975a] + ① ++ ② +++ ③ - ・1 -- ・2 --- ・3 | | |h | | | | | | ---- [[kiji-template]] * Name * Contents #contents * What's XX XX is ~ * Discribe XX discribe is ~ example. XXX = XX + X * 1. ** 1.1. *** 1.1.1 + ① ++ ② +++ ③ - ・1 -- ・2 --- ・3 | | |h | | | | | | ----
テキスト整形のルールを表示する