Skip to content

Instantly share code, notes, and snippets.

@esneko
Created November 14, 2019 15:31
Show Gist options
  • Save esneko/c5e5da861016fe9f60b95a885501cc3e to your computer and use it in GitHub Desktop.
Save esneko/c5e5da861016fe9f60b95a885501cc3e to your computer and use it in GitHub Desktop.
AWS AppSync
Stack name:
appsync-delta-api
Stack ID:
arn:aws:cloudformation:us-east-2:948919640322:stack/appsync-delta-api/af08d730-7c79-11e9-b24e-06017dd90e3a
Status:
CREATE_COMPLETE
> aws dynamodb list-tables
{
"TableNames": [
"AppSync-delta-sync-delta",
"AppSync-delta-sync-post"
]
}
> aws appsync list-graphql-apis
{
"graphqlApis": [
{
"name": "AppSync-DeltaSync",
"apiId": "bgns5khzlradpgp2ouc2vjceqe",
"authenticationType": "API_KEY",
"arn": "arn:aws:appsync:us-east-2:948919640322:apis/bgns5khzlradpgp2ouc2vjceqe",
"uris": {
"GRAPHQL": "https://2s52mnx6hrb5dnora5e5sr3sra.appsync-api.us-east-2.amazonaws.com/graphql"
}
}
]
}
> aws appsync list-data-sources --api-id bgns5khzlradpgp2ouc2vjceqe
{
"dataSources": [
{
"dataSourceArn": "arn:aws:appsync:us-east-2:948919640322:apis/bgns5khzlradpgp2ouc2vjceqe/datasources/deltas",
"name": "deltas",
"type": "AMAZON_DYNAMODB",
"serviceRoleArn": "arn:aws:iam::948919640322:role/AppSync-DynamoDBRole",
"dynamodbConfig": {
"tableName": "AppSync-delta-sync-delta",
"awsRegion": "us-east-2",
"useCallerCredentials": false
}
},
{
"dataSourceArn": "arn:aws:appsync:us-east-2:948919640322:apis/bgns5khzlradpgp2ouc2vjceqe/datasources/posts",
"name": "posts",
"type": "AMAZON_DYNAMODB",
"serviceRoleArn": "arn:aws:iam::948919640322:role/AppSync-DynamoDBRole",
"dynamodbConfig": {
"tableName": "AppSync-delta-sync-post",
"awsRegion": "us-east-2",
"useCallerCredentials": false
}
}
]
}
aws appsync create-api-key --api-id bgns5khzlradpgp2ouc2vjceqe
{
"apiKey": {
"id": "da2-xxxxxxxxxxxxxxxxxxxxxxxxxx",
"expires": 1574348400
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment