Aws Notes

查看本月费用

       The  Cost  Explorer API enables you to programmatically query your cost
       and usage data. You can query for aggregated data such as total monthly
       costs  or total daily usage. You can also query for granular data, such
       as the number of daily write operations for  Amazon  DynamoDB  database
       tables in your production environment
  • Linux

    aws ce get-cost-and-usage --time-period Start=$(date -u -d "$TODAY" '+%Y-%m-01'),End=$(date -u +"%Y-%m-%d" --date="+1 day") --granularity MONTHLY --metrics UnblendedCost --output text
    

注意:CE服务是按api调用次数收费

AWS Cost Explorer USE1-APIRequest                                                $0.05
$0.01 per API Request                      5.000 Request                         $0.05

steps to make ec2 access from outside

  1. create vpc
  2. create internet gateway
  3. add route to the gateway into the routetable

RequestTimeTooSkewed error with S3 upload

https://github.com/aws/aws-sdk-js/issues/399 https://aws.amazon.com/blogs/developer/clock-skew-correction/

cloudfront set Origin Custom Headers

https://w3guy.com/solution-font-origin-http-cdn-domain-blocked-loading-cors-policy/

Related