aditya-dixit1 opened a new issue #5632:
URL: https://github.com/apache/cloudstack/issues/5632


   ##### ISSUE TYPE
    * Bug Report
   
   ##### COMPONENT NAME
   API
   
   ##### CLOUDSTACK VERSION
   0.12.19.1
   
   ##### CONFIGURATION
   Docker-compose.yml:
   
   `version: "3.8"
   
   services:
     localstack:
       container_name: "${LOCALSTACK_DOCKER_NAME-localstack_main}"
       image: localstack/localstack
       network_mode: bridge
       ports:
         - "127.0.0.1:53:53"                # only required for Pro
         - "127.0.0.1:53:53/udp"            # only required for Pro
         - "127.0.0.1:443:443"              # only required for Pro
         - "127.0.0.1:4510-4530:4510-4530"  # only required for Pro
         - "127.0.0.1:4566:4566"
         - "127.0.0.1:4571:4571"
       environment:
         - SERVICES=${SERVICES- }
         - DEBUG=${DEBUG- }
         - DATA_DIR=${DATA_DIR- }
         - LAMBDA_EXECUTOR=${LAMBDA_EXECUTOR- }
         - LOCALSTACK_API_KEY=${LOCALSTACK_API_KEY- }  # only required for Pro
         - HOST_TMP_FOLDER=${TMPDIR:-/tmp/}localstack
         - DOCKER_HOST=unix:///var/run/docker.sock
       volumes:
         - "${TMPDIR:-/tmp}/localstack:/tmp/localstack"
         - "/var/run/docker.sock:/var/run/docker.sock"
   `
   
   
   ##### OS / ENVIRONMENT
   MacOS version 11.6
   
   ##### SUMMARY
   Not able to create APIDestination using cloudformation template.
   
   ##### STEPS TO REPRODUCE
   - Define a cloudformation template with a resource type 
"Events::ApiDestination". Try to invoke the create stack using the template.
   
   `def create_stack(stackName):
       cfn_client = get_cloudformation_client()
       template_data = _parse_template('template.json',cfn_client)
       response = cfn_client.create_stack(
           StackName=stackName,
           TemplateBody=template_data,
           Parameters=[
               {
                    'ParameterKey': 'Version',
                    'ParameterValue': '1.0.0'
               }
           ],
           Capabilities=[
               'CAPABILITY_NAMED_IAM'
           ],
           OnFailure= 'ROLLBACK',
           Tags=[
               {
                   'Key': 'Version',
                   'Value': '1.0.0'
               }
           ]
       )`
   
   ##### EXPECTED RESULTS
   CloudFormation Stack and all the resources should be created successfully.
   
   ##### ACTUAL RESULTS
   
   Stack status is "CREATE_FAILED". Error in the logs:
   
`2021-10-26T15:15:21:WARNING:localstack.utils.cloudformation.template_deployer: 
Unable to deploy resource type "Events::ApiDestination": {'Type': 
'AWS::Events::ApiDestination', 'Properties': {'ConnectionArn': 
'arn:aws:events:us-east-1:000000000000:connection/CBApiConnection/7b53e4b4-a918-4d1f-97c7-2234d7cbc702',
 'Description': 'String', 'HttpMethod': 'POST', 'InvocationEndpoint': 
'www.example.com', 'Name': 'test'}, 'DependsOn': ['testConnection'], 
'LogicalResourceId': 'APIDestination', 'PhysicalResourceId': None}`
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to