Skip to content

Commit

Permalink
add aws file ...
Browse files Browse the repository at this point in the history
エラーにはならいないと思いますがawsのモジュール全部取り入れて動けるようにします。
  • Loading branch information
Hayatto9217 committed Feb 2, 2024
1 parent 3b34288 commit 0cff0b2
Show file tree
Hide file tree
Showing 7,049 changed files with 1,923,809 additions and 0 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
54 changes: 54 additions & 0 deletions src/aws/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
# AWS CLI v2

This bundle contains a built executable of the AWS CLI v2.

## Installation

To install the AWS CLI v2, run the `install` script:
```
$ sudo ./install
You can now run: /usr/local/bin/aws --version
```
This will install the AWS CLI v2 at `/usr/local/bin/aws`. Assuming
`/usr/local/bin` is on your `PATH`, you can now run:
```
$ aws --version
```


### Installing without sudo

If you don't have ``sudo`` permissions or want to install the AWS
CLI v2 only for the current user, run the `install` script with the `-b`
and `-i` options:
```
$ ./install -i ~/.local/aws-cli -b ~/.local/bin
```
This will install the AWS CLI v2 in `~/.local/aws-cli` and create
symlinks for `aws` and `aws_completer` in `~/.local/bin`. For more
information about these options, run the `install` script with `-h`:
```
$ ./install -h
```

### Updating

If you run the `install` script and there is a previously installed version
of the AWS CLI v2, the script will error out. To update to the version included
in this bundle, run the `install` script with `--update`:
```
$ sudo ./install --update
```


### Removing the installation

To remove the AWS CLI v2, delete the its installation and symlinks:
```
$ sudo rm -rf /usr/local/aws-cli
$ sudo rm /usr/local/bin/aws
$ sudo rm /usr/local/bin/aws_completer
```
Note if you installed the AWS CLI v2 using the `-b` or `-i` options, you will
need to remove the installation and the symlinks in the directories you
specified.
1,468 changes: 1,468 additions & 0 deletions src/aws/THIRD_PARTY_LICENSES

Large diffs are not rendered by default.

28 changes: 28 additions & 0 deletions src/aws/config.gp
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
package aws

import (
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/credentials"
"github.com/aws/aws-sdk-go/aws/session"
"github.com/joho/godotenv"
"log"
"os"
)

func init() {
// .envファイルから環境変数を読み込む
if err := godotenv.Load("../funcs/.env"); err != nil {
log.Fatal("Error loading .env file")
}
}

func NewSession() *session.Session {
sess, err := session.NewSession(&aws.Config{
Region: aws.String(os.Getenv("AWS_REGION")),
Credentials: credentials.NewStaticCredentials(os.Getenv("AWS_ACCESS_KEY_ID"), os.Getenv("AWS_SECRET_ACCESS_KEY"), ""),
})
if err != nil {
panic(err)
}
return sess
}
Binary file added src/aws/dist/aws
Binary file not shown.
Binary file added src/aws/dist/aws_completer
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"type": "api-change",
"category": "``connect``",
"description": "Released Amazon Connect hours of operation API for general availability (GA). This API also supports AWS CloudFormation. For more information, see Amazon Connect Resource Type Reference in the AWS CloudFormation User Guide."
}
4,433 changes: 4,433 additions & 0 deletions src/aws/dist/awscli/botocore/cacert.pem

Large diffs are not rendered by default.

Loading

0 comments on commit 0cff0b2

Please sign in to comment.