riboseinc / aws-authenticating-secgroup-scripts

Scripts to use riboseinc/terraform-aws-authenticating-secgroup
Apache License 2.0
32 stars 28 forks source link

invoke_it.sh: line 79: local: method: readonly variable #13

Open erikbor opened 6 years ago

erikbor commented 6 years ago

Hi @phuonghuynh,

invoke_it.sh shows a warning:

$ bash "invoke_it.sh" -method POST -credentials "***:***" -url "https://***.execute-api.us-west-2.amazonaws.com/dev/membership"
aws_access_key=
    ***

aws_secret_key=
    ***

api_url=
    https://***.execute-api.us-west-2.amazonaws.com/dev/membership

timestamp=
    20180710T085822Z

today=
    20180710

invoke_it.sh: line 79: local: method: readonly variable

Can you please fix this? Maybe declaring the variables in main() as local -r.

Thanks