26 Dec 2022 to 1 Jan 2023
Weekly forecast
- Work on aws and previous project summary
I will act now. —by OG Mandino
Error when try to host Unicorn web on Amplify
1
Please sign in to access the item on ArcGIS Online.
- according to the link, the cause could be the s3 bucket where I copy my repo is in US server, thus the GIS map is also the US one, that does not work on the sydney server. Let’s try to switch to the US local one.
update on 28 Dec. according to link by jeffsec-aws, one of the library needs to be updated from 4.3 to 4.23 with a different public ID. change version from 4.3 to 4.23 solved the problem though.
- actually, 4.6 worked for it.
set a git remote origin from CLI
git remote set-url origin http://new.url.here, after that, git push -u remote origin
- You can create multiple API keys with different restrictions to use them safely. For embedding a map, the Google Maps documentation has instructions for creating a correctly restricted API key so that it cannot be abused for other purposes at Get an API Key - Restricting API keys. It’s OK to include a restricted API key in your source code, because you cannot embed a map properly without doing that anyway.
pip install need update
try pip 3 install then
AWS
S3
one zone infrequently access | S3 infrequent access | S3 glacier |
---|---|---|
30% cheaper | cheaper than S3 standard | for archive |
zone down then no access |
DocumentDB has a 400KB max to upload files.
npx nodemon index 临时全局 temp + global, 更常用于 create react app. nodemon dev dependency better:
npm i -D nodemon
Weekly summary
- API key can be stored as environment parameter on AWS as backend deployment(amplify can handle the environment variables).likn