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

task machine relationship #354

Open
dacbd opened this issue Jan 8, 2022 · 4 comments
Open

task machine relationship #354

dacbd opened this issue Jan 8, 2022 · 4 comments
Labels
resource-task iterative_task TF resource

Comments

@dacbd
Copy link
Contributor

dacbd commented Jan 8, 2022

I was snooping at: #340

and I wonder if there are any plans to have the task's "machine" definition accept an iterative_machine definition/resource?

@DavidGOrtega
Copy link
Contributor

@dacbd I would like to have built it on top but they are based on different concepts... in any case task like runner has its own hardware definition

@0x2b3bfa0 0x2b3bfa0 added the resource-task iterative_task TF resource label Jan 9, 2022
@dacbd
Copy link
Contributor Author

dacbd commented Jan 10, 2022

I might be wrong but looks like right now the only "hardware" definition consists of the instance type, disk, and base image.

I foresee something like this as a future possibility:

terraform {
    required_providers {
        iterative = {
            source = "iterative/iterative"
        }
    }
}

provider "iterative" {}

resource "iterative_machine" "instance_test" {
    cloud = "aws"
    region = "us-west-2"
    aws_subnet_id = "subnet-qwert2345"
    aws_security_group = "test"
    instance_type = "t1.micro"
    instance_permission_set = "some_S3_role"
    ssh_private = ***
}

resource "iterative_task" "task" {
    name = "test"
    machine = iterative_machine.instance_test.id
    script = file("script.sh")
    workdir {
        input = "."
        output = "./output"
        object_storage = "arn:::mys3/bucket"
    }
}

@DavidGOrtega
Copy link
Contributor

Oh yeah! we have already discussed that. Indeed the idea was to be able to use resources within resources.
I pretended that also with network and storage resources

#89

@casperdcl
Copy link
Contributor

related: #461

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

No branches or pull requests

4 participants