AWS Lifecycle configuration Noncurrentversion transition: Parameter validation failed

I am using aws cli to setup lifecycle management on a S3 bucket. I am using this json script:

{     "Rules": [         {             "Filter": {              },             "Status": "Enabled",             "Transitions": [         {             "Days": 30,             "StorageClass": "STANDARD_IA"         },                 {                     "Days": 365,                     "StorageClass": "GLACIER"                 }             ],             "NoncurrentVersionTransitions": {                 "NoncurrentDays":  1,                 "StorageClass": "GLACIER"                 },              "Expiration": {                 "Days": 3650             },             "ID": "Test"         }     ] } 

and I am getting this error:

Parameter validation failed: Invalid type for parameter  LifecycleConfiguration.Rules[0].NoncurrentVersionTransitions, value:  OrderedDict([(u'NoncurrentDays', 30), (u'StorageClass', u'STANDARD_IA')]),  type: <class 'collections.OrderedDict'>, valid types: <type 'list'>, <type  'tuple'> 

The script works fine when I exclude the part about the NoncurrentVersionTransitions. I was wondering how I could include the NoncurrentVersionTransitions correctly.

Thanks in advance.

php_network_getaddresses: getaddrinfo failed error in Docker’s adminer


I have problem with access to adminer in my docker container with laravel 5/mysql app. I got error :

 SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo failed 
Code (markup):

In my docker-compose.yml :

 version: '3'  services:  votes_app: build: context: ./web dockerfile: Dockerfile.yml  container_name: votes_app_container environment: - APACHE_RUN_USER=#1000 volumes: - $  {APP_PATH_HOST}:$  {APP_PTH_CONTAINER} ports: - 8081:80 working_dir: $  {APP_PTH_CONTAINER}   db:...
Code (markup):

php_network_getaddresses: getaddrinfo failed error in Docker's adminer