Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A sequence was not expected #5

Open
amaia00 opened this issue Aug 31, 2022 · 1 comment
Open

A sequence was not expected #5

amaia00 opened this issue Aug 31, 2022 · 1 comment

Comments

@amaia00
Copy link

amaia00 commented Aug 31, 2022

Hi I was trying to use the action as follows:

      - name: Run my ECS task
        uses: zamarawka/aws-run-fargate-task@v1
        with:
          task_name: task-definition-name
          cluster: cluster-name
          wait: true
          public_ip: false
          subnet_ids: [subnet-1, subnet-2, subnet-3]
          sg_names: [ sg-name ] 

But I'm having the following error:

Invalid workflow file: .github/workflows/aws.yml#L126
The workflow is not valid. .github/workflows/aws.yml (Line: 126, Col: 23): A sequence was not expected .github/workflows/aws.yml (Line: 127, Col: 21): A sequence was not expected
@scha7042
Copy link

Hi I am using your action as below, and added permission of EC2 Describe Subnets and Describe SecurityGroups still i am getting error as Unauthorized access

Run zamarawka/aws-run-fargate-task@v1
with:
task_name: tasks
cluster: Githubaction
sg_names: xpp-test-cy-sg
sg_ids: sg-0**08
subnet_ids: subnet-0b
168e
wait: true
timeout: 600
check_cluster_exists: false
public_ip: false
count: 1

I am unable to run task, below is the error details

Run fargate task
Fetch network settings
UnauthorizedOperation: You are not authorized to perform this operation.
at Request.extractError (/home/runner/work/_actions/zamarawka/aws-run-fargate-task/v1/dist/index.js:12164:35)
at Request.callListeners (/home/runner/work/_actions/zamarawka/aws-run-fargate-task/v1/dist/index.js:11138:20)
at Request.emit (/home/runner/work/_actions/zamarawka/aws-run-fargate-task/v1/dist/index.js:11110:10)
at Request.emit (/home/runner/work/_actions/zamarawka/aws-run-fargate-task/v1/dist/index.js:10483:14)
at Request.transition (/home/runner/work/_actions/zamarawka/aws-run-fargate-task/v1/dist/index.js:9819:10)
at AcceptorStateMachine.runTo (/home/runner/work/_actions/zamarawka/aws-run-fargate-task/v1/dist/index.js:13270:12)
at /home/runner/work/_actions/zamarawka/aws-run-fargate-task/v1/dist/index.js:13282:10
at Request. (/home/runner/work/_actions/zamarawka/aws-run-fargate-task/v1/dist/index.js:9835:9)
at Request. (/home/runner/work/_actions/zamarawka/aws-run-fargate-task/v1/dist/index.js:10485:12)
at Request.callListeners (/home/runner/work/_actions/zamarawka/aws-run-fargate-task/v1/dist/index.js:11148:18) {
code: 'UnauthorizedOperation',

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants