Git Product home page Git Product logo

cloud-prac's Introduction

cloud-prac's People

Contributors

kokoichi206 avatar

Stargazers

 avatar

Watchers

 avatar

cloud-prac's Issues

README generator

基本の型があるので、それをもとに可能な範囲で生成する。

  • title
  • variables table
  • outputs table

一発でリソースを削除する

一発でリソースを削除する

terraform destory では削除に失敗したりするのがある。

いちいちコンソールに飛ぶのはだるいので、なるべく多くのリソースを削除するのにいい方法がないかを調べ、実験する。

コンテナイメージ

よく使う言語・フレームワークについては、コンテナイメージの理想系的なのを持っておきたい。

Tips

複数行コメント

variable plaintext_params {
  type        = map(string)
  default     = {}
  description = <<EOF
  Lambda@Edge does not support env vars, so it is a common pattern to exchange Env vars for values read from a config file.
  So instead of using env vars like:
  `const someEnvValue = process.env.SOME_ENV`
  you would have lookups from a config file:
  ```
  const config = JSON.parse(readFileSync('./config.json'))
  const someConfigValue = config.SomeKey
  ```
  Compared to var.ssm_params, you should use this variable when you have non-secret things that you want very quick access
  to during the execution of your lambda function.
  EOF
}

AWS-SAA: S3 - SQS - Lambda

AWS-SAA でよくみる構成を作ってみるシリーズ

Screen Shot 2022-07-19 at 0 20 13

S3 にデータがアップロードされたイベントを検知して、SQS と Lambda を組み合わせてデータ加工を行う構成。

base: alpine の apk update で『process "/bin/sh -c apk update" did not complete successfully: exit code: 4』

Host env

$ uname -a
Linux ubuntu 5.4.0-1045-raspi #49-Ubuntu SMP PREEMPT Wed Sep 29 17:49:16 UTC 2021 aarch64 aarch64 aarch64 GNU/Linux

$ docker version
Client: Docker Engine - Community
 Version:           20.10.23
 API version:       1.41
 Go version:        go1.18.10
 Git commit:        7155243
 Built:             Thu Jan 19 17:32:52 2023
 OS/Arch:           linux/arm64
 Context:           default
 Experimental:      true

Server:
 Engine:
  Version:          24.0.5
  API version:      1.43 (minimum version 1.12)
  Go version:       go1.20.8
  Git commit:       a61e2b4
  Built:            Sat Oct  7 00:29:03 2023
  OS/Arch:          linux/arm64
  Experimental:     false
 containerd:
  Version:          v1.6.21
  GitCommit:        3dce8eb055cbb6872793272b4f20ed16117344f8
 runc:
  Version:          1.1.7
  GitCommit:        
 docker-init:
  Version:          0.19.0
  GitCommit:        de40ad0

Dockerfile

FROM alpine:latest

RUN apk update
RUN apk add --no-cache curl

COPY localhost_version /etc/localhost_version

build command

ubuntu@ubuntu:~/work/linux/container/from_basic$ docker build -t myimage:test .
[+] Building 13.7s (6/8)                                                                                                     
 => [internal] load .dockerignore                                                                                       0.1s
 => => transferring context: 2B                                                                                         0.1s
 => [internal] load build definition from Dockerfile                                                                    0.3s
 => => transferring dockerfile: 153B                                                                                    0.1s
 => [internal] load metadata for docker.io/library/alpine:latest                                                        0.0s
 => CACHED [1/4] FROM docker.io/library/alpine:latest                                                                   0.0s
 => [internal] load build context                                                                                       0.0s
 => => transferring context: 39B                                                                                        0.0s
 => ERROR [2/4] RUN apk update                                                                                         11.6s
------                                                                                                                       
 > [2/4] RUN apk update:                                                                                                     
#6 0.659 fetch https://dl-cdn.alpinelinux.org/alpine/v3.18/main/aarch64/APKINDEX.tar.gz                                      
#6 5.665 WARNING: updating and opening https://dl-cdn.alpinelinux.org/alpine/v3.18/main: temporary error (try again later)   
#6 5.665 fetch https://dl-cdn.alpinelinux.org/alpine/v3.18/community/aarch64/APKINDEX.tar.gz                                 
#6 10.67 WARNING: updating and opening https://dl-cdn.alpinelinux.org/alpine/v3.18/community: temporary error (try again later)
#6 10.67 4 unavailable, 0 stale; 15 distinct packages available
------
process "/bin/sh -c apk update" did not complete successfully: exit code: 4

AWS-SAA: Lambda + SQS

AWS-SAA でよくみる構成を作ってみるシリーズ

Screen Shot 2022-07-18 at 23 31 00

コンポーネント間を SQL キューで繋ぎ、メッセージを直接受信することを避ける方法。

非同期にすることで並行処理が可能になり、スケーラビリティが向上する。

github-actions

とりあえず plan がこけないかくらいはみる?

何やるかかから

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.