You must specify a region. You can also configure your region by running "aws configure".
[root@ip-172-31-3333-240 lambda]# aws configure
AWS Access Key ID [None]: AKIAXXXXXXXX5NOD6CAWS Secret Access Key [None]: eu1Dy9UtXXXXXXXXXXXXp96NgOZCfFY
Default region name [None]: us-west-2
Default output format [None]: json
* CLI Configure file location
Linux, macOS, or Unix ->
~/.aws/config
Windows ->
C:\Users\USERNAME
\.aws\config
[ec2-user@ip-172-31-7-149 ~]$ cd ~/.aws/
[ec2-user@ip-172-31-7-149 .aws]$ ls -al
total 8
drwxrwxr-x 2 ec2-user ec2-user 39 Dec 10 06:10 .
drwx------ 5 ec2-user ec2-user 272 Dec 10 06:10 ..
-rw------- 1 ec2-user ec2-user 94 Dec 10 06:12 config
-rw------- 1 ec2-user ec2-user 116 Dec 10 06:11 credentials
[ec2-user@ip-172-31-7-149 .aws]$ vi config
[ec2-user@ip-172-31-7-149 .aws]$ aws s3 ls
hostname -I
sudo tar -xzvf greengrass-OS-architecture-1.10.0.tar.gz -C /
sudo tar -xzvf Hash-setup.tar.gz -C /greengrass
cd /greengrass/certs/
sudo wget -O root.ca.pem https://www.amazontrust.com/repository/AmazonRootCA1.pem
cd /greengrass/ggc/core/
sudo ./greengrassd start
ps aux | grep -E 'greengrass.*daemon'
ps aux | grep PID-number
[ec2-user@ip-172-31-xxx-149 .aws]$ aws greengrass list-groups
{
"Groups": [
{
"LatestVersionArn": "arn:aws:greengrass:us-west-2:394441032220:/greengrass/groups/01a24b59-82af-4619-99f6-c2b3fffa9458/versions/9934360a-3749-4c6d-9ee2-4a2d49bbfdcc",
"Name": "RatchetWorkshop",
"LastUpdatedTimestamp": "2019-11-27T08:00:33.721Z",
"LatestVersion": "9934360a-3749-4c6d-9ee2-4a2d49bbfdcc",
"CreationTimestamp": "2019-11-27T08:00:33.721Z",
"Id": "01a24b59-82af-4619-99f6-c2b3fffa9458",
"Arn": "arn:aws:greengrass:us-west-2:394441032220:/greengrass/groups/01a24b59-82af-4619-99f6-c2b3fffa9458"
},
{
"LatestVersionArn": "arn:aws:greengrass:us-west-2:394441032220:/greengrass/groups/a4e67c91-8cbd-4265-a65d-103def8ae66d/versions/f939e585-6ab1-458f-81e5-f674dcd9d775",
"Name": "MyFirstGroup",
"LastUpdatedTimestamp": "2019-12-05T05:09:22.801Z",
"LatestVersion": "f939e585-6ab1-458f-81e5-f674dcd9d775",
"CreationTimestamp": "2019-12-05T05:09:22.801Z",
"Id": "a4e67c91-8cbd-4265-a65d-103def8ae66d",
"Arn": "arn:aws:greengrass:us-west-2:394441032220:/greengrass/groups/a4e67c91-8cbd-4265-a65d-103def8ae66d"
}
]
}
aws greengrass reset-deployments --group-id
GroupId
--force[ec2-user@ip-172-31-7-149 .aws]$ aws greengrass list-group-versions --group-id a4e67c91-8cbd-4265-a65d-103def8ae66d
pip install greengrasssdk
No comments:
Post a Comment