amazon-web-services

AWS CDK setup appsync with dynamodb table permissions

余生长醉 提交于 2021-02-11 06:18:26
问题 I am using the new higher level GraphqlAPI class instead of the lower level constructs to create my Appsync api and connect it to a table. this.api = new GraphqlApi(...); The new GraphqlApi instance allows you to simply add datasources: this.api.addDynamoDbDataSource('name', tableRef); If you look at the example code at https://docs.aws.amazon.com/cdk/api/latest/docs/aws-appsync-readme.html, I notice that they do not create a role to grant permission for Appsync to access the table: const

React images load locally but not on AWS Amplify

ぃ、小莉子 提交于 2021-02-11 06:18:26
问题 Hi I am working with an API that retrieves the URL of an image. I am then trying to pass that URL into an tag as follows: <img class="img-fluid" src={this.state.representatives[i].pic}/> Locally I am met with But when I try to use the app on AWS Amplify, I am met with: I have tried hardcoding the URL into the app but it returns the same error. I am really confused where to go from here. For example the image URL pulled from the API for Mark Warner is http://bioguide.congress.gov/bioguide

AWS CDK setup appsync with dynamodb table permissions

寵の児 提交于 2021-02-11 06:17:42
问题 I am using the new higher level GraphqlAPI class instead of the lower level constructs to create my Appsync api and connect it to a table. this.api = new GraphqlApi(...); The new GraphqlApi instance allows you to simply add datasources: this.api.addDynamoDbDataSource('name', tableRef); If you look at the example code at https://docs.aws.amazon.com/cdk/api/latest/docs/aws-appsync-readme.html, I notice that they do not create a role to grant permission for Appsync to access the table: const

How can I deny public access to an AWS API gateway while allowing access by only a specific role?

◇◆丶佛笑我妖孽 提交于 2021-02-11 04:38:09
问题 I would like to deny public access to an AWS API Gateway and only allow access when the API is invoked with a specific role. In my test there are two gateways, and one calls the other: Public Gateway -> Private Gateway I want to be able to visit Public Gateway endpoints in a browser and receive a 2XX response, and when visiting the Private Gateway directly I should receive a 4XX response. The only way to access the Private Gateway should be via the Public Gateway (which proxies to the Private

How can I deny public access to an AWS API gateway while allowing access by only a specific role?

老子叫甜甜 提交于 2021-02-11 04:37:15
问题 I would like to deny public access to an AWS API Gateway and only allow access when the API is invoked with a specific role. In my test there are two gateways, and one calls the other: Public Gateway -> Private Gateway I want to be able to visit Public Gateway endpoints in a browser and receive a 2XX response, and when visiting the Private Gateway directly I should receive a 4XX response. The only way to access the Private Gateway should be via the Public Gateway (which proxies to the Private

How can I deny public access to an AWS API gateway while allowing access by only a specific role?

做~自己de王妃 提交于 2021-02-11 04:37:12
问题 I would like to deny public access to an AWS API Gateway and only allow access when the API is invoked with a specific role. In my test there are two gateways, and one calls the other: Public Gateway -> Private Gateway I want to be able to visit Public Gateway endpoints in a browser and receive a 2XX response, and when visiting the Private Gateway directly I should receive a 4XX response. The only way to access the Private Gateway should be via the Public Gateway (which proxies to the Private

End of script output before headers: wsgi.py deploying python django to AWS EB

£可爱£侵袭症+ 提交于 2021-02-11 01:41:14
问题 I can't get the Django app to deploy to AWS EB. I'm deploying an Django 1.7 app. The readout from the log files is as follows. I only get an internal server error and have no idea how to fix this. Has anyone run into this before? ------------------------------------- /opt/python/log/supervisord.log ------------------------------------- 2016-05-03 15:22:57,677 CRIT Supervisor running as root (no user in config file) 2016-05-03 15:22:57,690 INFO RPC interface 'supervisor' initialized 2016-05-03

End of script output before headers: wsgi.py deploying python django to AWS EB

限于喜欢 提交于 2021-02-11 01:39:47
问题 I can't get the Django app to deploy to AWS EB. I'm deploying an Django 1.7 app. The readout from the log files is as follows. I only get an internal server error and have no idea how to fix this. Has anyone run into this before? ------------------------------------- /opt/python/log/supervisord.log ------------------------------------- 2016-05-03 15:22:57,677 CRIT Supervisor running as root (no user in config file) 2016-05-03 15:22:57,690 INFO RPC interface 'supervisor' initialized 2016-05-03

End of script output before headers: wsgi.py deploying python django to AWS EB

最后都变了- 提交于 2021-02-11 01:35:31
问题 I can't get the Django app to deploy to AWS EB. I'm deploying an Django 1.7 app. The readout from the log files is as follows. I only get an internal server error and have no idea how to fix this. Has anyone run into this before? ------------------------------------- /opt/python/log/supervisord.log ------------------------------------- 2016-05-03 15:22:57,677 CRIT Supervisor running as root (no user in config file) 2016-05-03 15:22:57,690 INFO RPC interface 'supervisor' initialized 2016-05-03

End of script output before headers: wsgi.py deploying python django to AWS EB

一曲冷凌霜 提交于 2021-02-11 01:34:41
问题 I can't get the Django app to deploy to AWS EB. I'm deploying an Django 1.7 app. The readout from the log files is as follows. I only get an internal server error and have no idea how to fix this. Has anyone run into this before? ------------------------------------- /opt/python/log/supervisord.log ------------------------------------- 2016-05-03 15:22:57,677 CRIT Supervisor running as root (no user in config file) 2016-05-03 15:22:57,690 INFO RPC interface 'supervisor' initialized 2016-05-03