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

Changes arch from Linux/X86_64 #147

Closed
danielstravito opened this issue Apr 25, 2022 · 3 comments
Closed

Changes arch from Linux/X86_64 #147

danielstravito opened this issue Apr 25, 2022 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@danielstravito
Copy link

danielstravito commented Apr 25, 2022

Orb version:

2.2.1

What happened:

I had a taskdef with the following, and the service was live and healthy with ARM64.

    "runtimePlatform": {
        "cpuArchitecture": "ARM64",
        "operatingSystemFamily": "LINUX"
    },

I then deployed via this orb, and now it's on Linux/X86_64 rather than ARM64.

I use the following for deploys:

- aws-ecs/update-service:
          verify-revision-is-deployed: true
          container-image-name-updates: "container=blah,tag=${CIRCLE_SHA1}"
          family: "blah-task"
          cluster-name: "blah-cluster"
          service-name: "blah-service"

Expected behavior:

Either don't touch the platform, or expose functionality that lets you control the platform.

@danielstravito danielstravito added the bug Something isn't working label Apr 25, 2022
@danielstravito
Copy link
Author

danielstravito commented May 12, 2022

This script needs to be changed:

https://github.com/CircleCI-Public/aws-ecs-orb/blob/master/src/scripts/register-new-task-def.sh

Needs a parameter for adding:

--runtime-platform=cpuArchitecture=ARM64,operatingSystemFamily=LINUX

@brivu
Copy link
Contributor

brivu commented May 20, 2022

Hey @danielstravito,

I've merged PR #155 to add the runtime-platform parameter. I'm closing this issue for now but please feel free to reopen if that doesn't work for your use case.

Thanks!
Brian

@brivu brivu closed this as completed May 20, 2022
@brivu brivu self-assigned this May 20, 2022
@danielstravito
Copy link
Author

danielstravito commented Jun 29, 2022

Shouldn't this be added to the update-service? Or how does it work? Can I now update the taskdef manually to arm64 and using update-service will no longer overwrite that - or can I pass runtime-platform to update-service, or do I have to use update-task-definition? I can't see it mentioned in the documentation here:

https://circleci.com/developer/orbs/orb/circleci/aws-ecs?version=2.3.0

And that version is newer than your comment above.

Update: Verified that it doesn't touch existing platform now. Enough for me, even if it would be nice to be able to specify it as parameter to update-service.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants
@brivu @danielstravito and others