-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
エラーにはならいないと思いますがawsのモジュール全部取り入れて動けるようにします。
- Loading branch information
1 parent
3b34288
commit 0cff0b2
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.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 not shown.
Binary file not shown.
5 changes: 5 additions & 0 deletions
5
src/aws/dist/awscli/botocore/.changes/next-release/api-change-connect-59117.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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." | ||
} |
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.